Author: bugman Date: Tue Jan 15 13:17:21 2008 New Revision: 4734 URL: http://svn.gna.org/viewcvs/relax?rev=4734&view=rev Log: The minimise() method now catches the situation of having no errors of the alignment tensor. Modified: branches/N_state_model/specific_fns/n_state_model.py Modified: branches/N_state_model/specific_fns/n_state_model.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/specific_fns/n_state_model.py?rev=4734&r1=4733&r2=4734&view=diff ============================================================================== --- branches/N_state_model/specific_fns/n_state_model.py (original) +++ branches/N_state_model/specific_fns/n_state_model.py Tue Jan 15 13:17:21 2008 @@ -191,8 +191,13 @@ if constraints: A, b = self.linear_constraints() + # The aligment tensor errors, if they exist. + tensor_err = None + if hasattr(cdp, 'align_tensor_errors'): + tensor_err = cdp.align_tensor_errors + # Set up the class instance containing the target function. - model = N_state_opt(init_params=param_vector, data=cdp.align_tensor, errors=cdp.align_tensor_errors) + model = N_state_opt(init_params=param_vector, data=cdp.align_tensor, errors=tensor_err) # Setup the minimisation algorithm when constraints are present. if constraints and not search('^[Gg]rid', min_algor):