mailr5594 - /1.3/specific_fns/jw_mapping.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 11, 2008 - 21:00:
Author: semor
Date: Fri Apr 11 20:43:28 2008
New Revision: 5594

URL: http://svn.gna.org/viewcvs/relax?rev=5594&view=rev
Log:
Converted some '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/jw_mapping.py

Modified: 1.3/specific_fns/jw_mapping.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/jw_mapping.py?rev=5594&r1=5593&r2=5594&view=diff
==============================================================================
--- 1.3/specific_fns/jw_mapping.py (original)
+++ 1.3/specific_fns/jw_mapping.py Fri Apr 11 20:43:28 2008
@@ -402,23 +402,20 @@
         cdp.jw_frq = frq
 
 
-    def set_error(self, instance, spin, error):
+    def set_error(self, spin, error):
         """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 J(wX) sim data.
         if index == 1:
-            cdp.res[instance].jwx_err = error
+            spin.jwx_err = error
 
         # Return J(wH) sim data.
         if index == 2:
-            cdp.res[instance].jwh_err = error
+            spin.jwh_err = error
 
 
     def sim_return_param(self, instance, index):




Related Messages


Powered by MHonArc, Updated Sat Apr 12 02:20:10 2008