mailr6189 - /1.3/specific_fns/relax_fit.py


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

Header


Content

Posted by edward on May 21, 2008 - 21:34:
Author: bugman
Date: Wed May 21 21:34:45 2008
New Revision: 6189

URL: http://svn.gna.org/viewcvs/relax?rev=6189&view=rev
Log:
Updated the model_setup() method to the new design.


Modified:
    1.3/specific_fns/relax_fit.py

Modified: 1.3/specific_fns/relax_fit.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/relax_fit.py?rev=6189&r1=6188&r2=6189&view=diff
==============================================================================
--- 1.3/specific_fns/relax_fit.py (original)
+++ 1.3/specific_fns/relax_fit.py Wed May 21 21:34:45 2008
@@ -786,23 +786,29 @@
 
 
     def model_setup(self, model, params):
-        """Function for updating various data structures dependant on the 
model selected."""
+        """Update various model specific data structures.
+
+        @param model:   The exponential curve type.
+        @type model:    str
+        @param params:  A list consisting of the model parameters.
+        @type params:   list of str
+        """
 
         # Set the model.
-        relax_data_store.curve_type[self.run] = model
+        relax_data_store[relax_data_store.current_pipe].curve_type = model
 
         # Initialise the data structures (if needed).
         self.data_init()
 
         # Loop over the sequence.
-        for i in xrange(len(relax_data_store.res[self.run])):
-            # Skip deselected residues.
-            if not relax_data_store.res[self.run][i].select:
+        for spin in spin_loop():
+            # Skip deselected spins.
+            if not spin.select:
                 continue
 
             # The model and parameter names.
-            relax_data_store.res[self.run][i].model = model
-            relax_data_store.res[self.run][i].params = params
+            spin.model = model
+            spin.params = params
 
 
     def overfit_deselect(self, run):




Related Messages


Powered by MHonArc, Updated Wed May 21 21:40:28 2008