Author: bugman Date: Fri Nov 27 18:34:19 2009 New Revision: 10007 URL: http://svn.gna.org/viewcvs/relax?rev=10007&view=rev Log: Deletion of the set_non_spin_params() method. This mess is no longer in the base API. Modified: 1.3/specific_fns/n_state_model.py Modified: 1.3/specific_fns/n_state_model.py URL: http://svn.gna.org/viewcvs/relax/1.3/specific_fns/n_state_model.py?rev=10007&r1=10006&r2=10007&view=diff ============================================================================== --- 1.3/specific_fns/n_state_model.py (original) +++ 1.3/specific_fns/n_state_model.py Fri Nov 27 18:34:19 2009 @@ -1791,51 +1791,3 @@ gamma of the third state is specified using the string 'gamma2'. """ - - - def set_non_spin_params(self, value=None, param=None): - """Function for setting all the N-state model parameter values. - - @param value: The parameter values (for defaults supply [None]). - @type value: list of numbers or [None] - @param param: The parameter names. - @type param: None, str, or list of str - """ - - # Get the model parameters if param is None. - if param == None: - param = cdp.params - - # Test that the parameter and value lists are the same size. - if isinstance(param, list) and value[0] != None and len(param) != len(value): - raise RelaxError("The length of " + repr(len(value)) + " of the value array must be equal to the length of the parameter array, " + repr(param) + ".") - - # Convert param to a list (if it is a string). - if isinstance(param, str): - param = [param] - - # If no value is supplied (i.e. value == [None]), then get the default values. - if value == [None]: - value = [] - for i in xrange(len(param)): - value.append(self.default_value(param[i])) - - # Set the parameter values. - for i in xrange(len(param)): - # Get the object name and the parameter index. - object_name = self.return_data_name(param[i]) - if not object_name: - raise RelaxError("The data type " + repr(param[i]) + " does not exist.") - index = self._param_model_index(param[i]) - - # Simple objects (not a list). - if index == None: - setattr(cdp, object_name, value[i]) - - # List objects. - else: - # Get the object. - object = getattr(cdp, object_name) - - # Set the parameter value. - object[index] = value[i]