mailr11509 - /1.3/specific_fns/api_common.py


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

Header


Content

Posted by edward on August 13, 2010 - 09:49:
Author: bugman
Date: Fri Aug 13 09:49:18 2010
New Revision: 11509

URL: http://svn.gna.org/viewcvs/relax?rev=11509&view=rev
Log:
Created a API common set_selected_sim() method for a single global model.

The method is called _set_selected_sim_global() and simply puts the 
select_sim bool list into the
cdp.


Modified:
    1.3/specific_fns/api_common.py

Modified: 1.3/specific_fns/api_common.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/api_common.py?rev=11509&r1=11508&r2=11509&view=diff
==============================================================================
--- 1.3/specific_fns/api_common.py (original)
+++ 1.3/specific_fns/api_common.py Fri Aug 13 09:49:18 2010
@@ -431,6 +431,19 @@
                 setattr(spin, obj_name, value[i])
 
 
+    def _set_selected_sim_global(self, model_info, select_sim):
+        """Set the simulation selection flag (for a single global model).
+
+        @param model_info:  The model information originating from 
model_loop().  This should be zero for the single global model.
+        @type model_info:   unknown
+        @param select_sim:  The selection flag for the simulations.
+        @type select_sim:   bool
+        """
+
+        # Set the array.
+        cdp.select_sim = deepcopy(select_sim)
+
+
     def _set_selected_sim_spin(self, model_info, select_sim):
         """Set the simulation selection flag (spin system specific).
 




Related Messages


Powered by MHonArc, Updated Fri Aug 13 12:20:01 2010