Author: bugman Date: Thu Jan 3 17:22:13 2008 New Revision: 4279 URL: http://svn.gna.org/viewcvs/relax?rev=4279&view=rev Log: Updated the set_update() method of the Model_free class to the new relax design. Modified: 1.3/specific_fns/model_free/model_free.py Modified: 1.3/specific_fns/model_free/model_free.py URL: http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/model_free.py?rev=4279&r1=4278&r2=4279&view=diff ============================================================================== --- 1.3/specific_fns/model_free/model_free.py (original) +++ 1.3/specific_fns/model_free/model_free.py Thu Jan 3 17:22:13 2008 @@ -4171,24 +4171,21 @@ relax_data_store.res[self.run][instance].select_sim = select_sim - def set_update(self, run, param, index): + def set_update(self, param, spin): """Function to update the other model-free parameters.""" - - # Alias the residue specific data structure. - data = relax_data_store.res[self.run][index] # S2f parameter. if param == 'S2f': # Update S2 if S2s exists. - if hasattr(data, 's2s') and data.s2s != None: - data.s2 = data.s2f * data.s2s + if hasattr(spin, 's2s') and spin.s2s != None: + spin.s2 = spin.s2f * spin.s2s # S2s parameter. if param == 'S2s': # Update S2 if S2f exists. - if hasattr(data, 's2f') and data.s2f != None: - data.s2 = data.s2f * data.s2s + if hasattr(spin, 's2f') and spin.s2f != None: + spin.s2 = spin.s2f * spin.s2s def sim_init_values(self, run):