Author: bugman Date: Thu May 22 00:10:53 2008 New Revision: 6229 URL: http://svn.gna.org/viewcvs/relax?rev=6229&view=rev Log: Updated the sim_return_selected() method to the new design. 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=6229&r1=6228&r2=6229&view=diff ============================================================================== --- 1.3/specific_fns/base_class.py (original) +++ 1.3/specific_fns/base_class.py Thu May 22 00:10:53 2008 @@ -25,7 +25,7 @@ # relax module imports. from data import Data as relax_data_store -from generic_fns.mol_res_spin import count_spins, exists_mol_res_spin_data, spin_loop +from generic_fns.mol_res_spin import count_spins, exists_mol_res_spin_data, return_spin_from_index, spin_loop from relax_errors import RelaxError @@ -344,14 +344,17 @@ inc = inc + 1 - def sim_return_selected(self, spin): - """Function for returning the array of selected simulation flags for the given spin. - - @param spin: The SpinContainer object. - @type spin: SpinContainer instance - @return: The array of selected simulation flags. - @rtype: list of int - """ + def sim_return_selected(self, instance): + """Return the array of selected simulation flags for the spin. + + @param instance: The spin index. + @type instance: int + @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