Author: bugman Date: Fri Jan 25 15:56:06 2008 New Revision: 4888 URL: http://svn.gna.org/viewcvs/relax?rev=4888&view=rev Log: Implemented the model-free specific is_spin_param() method. 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=4888&r1=4887&r2=4888&view=diff ============================================================================== --- 1.3/specific_fns/model_free/model_free.py (original) +++ 1.3/specific_fns/model_free/model_free.py Fri Jan 25 15:56:06 2008 @@ -1074,6 +1074,27 @@ # Return the parameter names. return self.param_vector + + + def is_spin_param(self, name): + """Determine whether the given parameter is spin specific. + + Unless a diffusion parameter is encountered, this method will return true. + + @param name: The name of the parameter. + @type name: str + @return: If the parameter is a diffusion parameter, False I returned. Otherwise True + is returned. + @rtype: bool + """ + + # Catch a diffusion parameter. + if diffusion_tensor.return_data_name(name): + return False + + # All the rest: + else: + return True def linear_constraints(self, index=None):