Author: bugman Date: Tue Aug 5 22:20:04 2008 New Revision: 7071 URL: http://svn.gna.org/viewcvs/relax?rev=7071&view=rev Log: Changed the instance arg to model_index in the model-free set_selected_sim() method. 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=7071&r1=7070&r2=7071&view=diff ============================================================================== --- 1.3/specific_fns/model_free/main.py (original) +++ 1.3/specific_fns/model_free/main.py Tue Aug 5 22:20:04 2008 @@ -2568,11 +2568,13 @@ diffusion_tensor.set(value=value, param=param) - def set_selected_sim(self, instance, select_sim): + def set_selected_sim(self, model_index, select_sim): """Set all simulation selection flags. - @param instance: Either the spin container or data pipe container object. - @type instance: SpinContainer or PipeContainer instance + @param model_index: The model index. This is zero for the global models or equal to the + global spin index (which covers the molecule, residue, and spin + indices). + @type model_index: int @param select_sim: The selection flags. @type select_sim: bool """ @@ -2580,14 +2582,14 @@ # Determine the model type. model_type = self.determine_model_type() - # Single instance. + # Global model. if model_type == 'all' or model_type == 'diff': ds[ds.current_pipe].select_sim = select_sim - # Multiple instances. + # Spin specific model. else: # Get the spin container. - spin = return_spin_from_index(instance) + spin = return_spin_from_index(model_index) # Set the simulation flags. spin.select_sim = select_sim