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).