Author: bugman Date: Tue Jan 15 10:54:47 2008 New Revision: 4716 URL: http://svn.gna.org/viewcvs/relax?rev=4716&view=rev Log: Updated the base class method sim_return_selected() to the new relax 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=4716&r1=4715&r2=4716&view=diff ============================================================================== --- 1.3/specific_fns/base_class.py (original) +++ 1.3/specific_fns/base_class.py Tue Jan 15 10:54:47 2008 @@ -395,11 +395,14 @@ inc = inc + 1 - def sim_return_selected(self, run, index): - """Function for returning the array of selected simulation flags.""" - - # Arguments. - self.run = run + 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 + """ # Return the array. - return relax_data_store.res[self.run][index].select_sim + return spin.select_sim