mailr6476 - /1.3/specific_fns/model_free/main.py


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

Header


Content

Posted by edward on June 24, 2008 - 00:39:
Author: bugman
Date: Tue Jun 24 00:29:28 2008
New Revision: 6476

URL: http://svn.gna.org/viewcvs/relax?rev=6476&view=rev
Log:
Rewrote the set_selected_sim() method as the changes of r6475 were rubbish.


Modified:
    1.3/specific_fns/model_free/main.py

Modified: 1.3/specific_fns/model_free/main.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/main.py?rev=6476&r1=6475&r2=6476&view=diff
==============================================================================
--- 1.3/specific_fns/model_free/main.py (original)
+++ 1.3/specific_fns/model_free/main.py Tue Jun 24 00:29:28 2008
@@ -2556,16 +2556,28 @@
 
 
     def set_selected_sim(self, instance, select_sim):
-        """Function for returning the array of selected simulation flags.
+        """Set all simulation selection flags.
 
         @param instance:    Either the spin container or data pipe container 
object.
         @type instance:     SpinContainer or PipeContainer instance
-        @param select_sim:  The selection flag.
+        @param select_sim:  The selection flags.
         @type select_sim:   bool
         """
 
-        # Set the flag.
-        instance.select_sim = select_sim
+        # Determine the parameter set type.
+        param_set = self.determine_param_set_type()
+
+        # Single instance.
+        if param_set == 'all' or param_set == 'diff':
+            ds[ds.current_pipe].select_sim = select_sim
+
+        # Multiple instances.
+        else:
+            # Get the spin container.
+            spin = return_spin_from_index(instance)
+
+            # Set the simulation flags.
+            spin.select_sim = select_sim
 
 
     def set_update(self, param, spin):




Related Messages


Powered by MHonArc, Updated Tue Jun 24 23:00:30 2008