mailr5599 - /1.3/specific_fns/consistency_tests.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by sebastien . morin . 1 on April 12, 2008 - 16:39:
Author: semor
Date: Sat Apr 12 16:39:27 2008
New Revision: 5599

URL: http://svn.gna.org/viewcvs/relax?rev=5599&view=rev
Log:
Converted some more 'instance' arguments to calls to 'spin' and removed some 
now unused 'cdp' calls.

This is a small part of what Edward d'Auvergne noticed in a post at:
https://mail.gna.org/public/relax-devel/2008-04/msg00010.html (# Message-id:
<7f080ed10804030909m3b540ee3y1d60009542c09694@xxxxxxxxxxxxxx>)


Modified:
    1.3/specific_fns/consistency_tests.py

Modified: 1.3/specific_fns/consistency_tests.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/consistency_tests.py?rev=5599&r1=5598&r2=5599&view=diff
==============================================================================
--- 1.3/specific_fns/consistency_tests.py (original)
+++ 1.3/specific_fns/consistency_tests.py Sat Apr 12 16:39:27 2008
@@ -459,23 +459,20 @@
         cdp.ct_frq = frq
 
 
-    def set_error(self, instance, spin, error):
+    def set_error(self, error, index, spin):
         """Function for setting parameter errors."""
-
-        # Alias the current data pipe.
-        cdp = relax_data_store[relax_data_store.current_pipe]
 
         # Return J(0) sim data.
         if index == 0:
-            cdp.res[instance].j0_err = error
+            spin.j0_err = error
 
         # Return F_eta sim data.
         if index == 1:
-            cdp.res[instance].f_eta_err = error
+            spin.f_eta_err = error
 
         # Return F_R2 sim data.
         if index == 2:
-            cdp.res[instance].f_r2_err = error
+            spin.f_r2_err = error
 
 
     def sim_return_param(self, instance, spin):




Related Messages


Powered by MHonArc, Updated Sat Apr 12 17:00:27 2008