mailr7242 - /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:26:
Author: bugman
Date: Wed Sep 24 16:26:40 2008
New Revision: 7242

URL: http://svn.gna.org/viewcvs/relax?rev=7242&view=rev
Log:
Modified the set_error() 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=7242&r1=7241&r2=7242&view=diff
==============================================================================
--- 1.3/specific_fns/base_class.py (original)
+++ 1.3/specific_fns/base_class.py Wed Sep 24 16:26:40 2008
@@ -251,23 +251,16 @@
         return value, error
 
 
-    def set_error(self, instance, index, error):
+    def set_error(self, spin, index, error):
         """Set the parameter errors.
 
-        @param instance:    The spin index.
-        @type instance:     int
-        @param index:       The index of the parameter to set the errors for.
-        @type index:        int
-        @param error:       The error value.
-        @type error:        float
-        """
-
-        # Get the SpinContainer.
-        spin = return_spin_from_index(instance)
-
-        # Skip deselected spins.
-        if not spin.select:
-            return
+        @param spin:    The SpinContainer object.
+        @type spin:     SpinContainer
+        @param index:   The index of the parameter to set the errors for.
+        @type index:    int
+        @param error:   The error value.
+        @type error:    float
+        """
 
         # Parameter increment counter.
         inc = 0




Related Messages


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