mailr7241 - /1.3/specific_fns/base_class.py


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

Header


Content

Posted by edward on September 24, 2008 - 16:22:
Author: bugman
Date: Wed Sep 24 16:22:23 2008
New Revision: 7241

URL: http://svn.gna.org/viewcvs/relax?rev=7241&view=rev
Log:
Modified the sim_return_param() base class method to accept the spin 
container.


Modified:
    1.3/specific_fns/base_class.py

Modified: 1.3/specific_fns/base_class.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/base_class.py?rev=7241&r1=7240&r2=7241&view=diff
==============================================================================
--- 1.3/specific_fns/base_class.py (original)
+++ 1.3/specific_fns/base_class.py Wed Sep 24 16:22:23 2008
@@ -403,21 +403,14 @@
             return spin.chi2_sim
 
 
-    def sim_return_param(self, instance, index):
+    def sim_return_param(self, spin, index):
         """Return the array of simulation parameter values.
  
-        @param instance:    The optimisation instance index.
-        @type instance:     int
+        @param spin:        The spin container.
+        @type spin:         SpinContainer instance
         @param index:       The index of the parameter to return the array 
of values for.
         @type index:        int
         """
-
-        # Get the SpinContainer.
-        spin = return_spin_from_index(instance)
-
-        # Skip deselected spins.
-        if not spin.select:
-            return
 
         # Parameter increment counter.
         inc = 0




Related Messages


Powered by MHonArc, Updated Wed Sep 24 16:40:01 2008