mailr7240 - /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:20:
Author: bugman
Date: Wed Sep 24 16:19:59 2008
New Revision: 7240

URL: http://svn.gna.org/viewcvs/relax?rev=7240&view=rev
Log:
Modified the sim_return_selected() 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=7240&r1=7239&r2=7240&view=diff
==============================================================================
--- 1.3/specific_fns/base_class.py (original)
+++ 1.3/specific_fns/base_class.py Wed Sep 24 16:19:59 2008
@@ -432,17 +432,14 @@
             inc = inc + 1
 
 
-    def sim_return_selected(self, instance):
+    def sim_return_selected(self, spin):
         """Return the array of selected simulation flags for the spin.
 
-        @param instance:    The spin index.
-        @type instance:     int
+        @param spin:        The spin container.
+        @type spin:         SpinContainer instance
         @return:            The array of selected simulation flags.
         @rtype:             list of int
         """
-
-        # Get the SpinContainer.
-        spin = return_spin_from_index(instance)
 
         # Return the array.
         return spin.select_sim




Related Messages


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