mailr9951 - /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 edward on November 25, 2009 - 09:15:
Author: bugman
Date: Wed Nov 25 09:15:40 2009
New Revision: 9951

URL: http://svn.gna.org/viewcvs/relax?rev=9951&view=rev
Log:
Converted many of the J(w) mapping methods to use the model_info arg rather 
than spin.


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=9951&r1=9950&r2=9951&view=diff
==============================================================================
--- 1.3/specific_fns/jw_mapping.py (original)
+++ 1.3/specific_fns/jw_mapping.py Wed Nov 25 09:15:40 2009
@@ -466,8 +466,19 @@
         cdp.jw_frq = frq
 
 
-    def set_error(self, spin, index, error):
-        """Function for setting parameter errors."""
+    def set_error(self, model_info, index, error):
+        """Set the parameter errors.
+
+        @param model_info:  The spin container originating from model_loop().
+        @type model_info:   SpinContainer instance
+        @param index:       The index of the parameter to set the errors for.
+        @type index:        int
+        @param error:       The error value.
+        @type error:        float
+        """
+
+        # Alias.
+        spin = model_info
 
         # Return J(0) sim data.
         if index == 0:
@@ -482,8 +493,17 @@
             spin.jwh_err = error
 
 
-    def sim_return_param(self, spin, index):
-        """Function for returning the array of simulation parameter 
values."""
+    def sim_return_param(self, model_info, index):
+        """Return the array of simulation parameter values.
+
+        @param model_info:  The spin container originating from model_loop().
+        @type model_info:   SpinContainer instance
+        @param index:       The index of the parameter to return the array 
of values for.
+        @type index:        int
+        """
+
+        # Alias.
+        spin = model_info
 
         # Skip deselected residues.
         if not spin.select:
@@ -502,8 +522,15 @@
             return spin.jwh_sim
 
 
-    def sim_return_selected(self, spin):
-        """Function for returning the array of selected simulation flags."""
+    def sim_return_selected(self, model_info):
+        """Return the array of selected simulation flags.
+
+        @param model_info:  The spin container originating from model_loop().
+        @type model_info:   SpinContainer instance
+        """
+
+        # Alias.
+        spin = model_info
 
         # Multiple spins.
         return spin.select_sim




Related Messages


Powered by MHonArc, Updated Wed Nov 25 09:20:03 2009