Author: bugman Date: Wed Jan 16 09:32:57 2008 New Revision: 4767 URL: http://svn.gna.org/viewcvs/relax?rev=4767&view=rev Log: The rotation matricies are now calculated by the call to func(). Modified: branches/N_state_model/maths_fns/n_state_model.py Modified: branches/N_state_model/maths_fns/n_state_model.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/maths_fns/n_state_model.py?rev=4767&r1=4766&r2=4767&view=diff ============================================================================== --- branches/N_state_model/maths_fns/n_state_model.py (original) +++ branches/N_state_model/maths_fns/n_state_model.py Wed Jan 16 09:32:57 2008 @@ -25,6 +25,7 @@ # relax module imports. from chi2 import chi2 +from rotation_matrix import rotation_matrix_zyz class N_state_opt: @@ -83,5 +84,9 @@ @type return: float """ + # Update the rotation matricies. + for i in xrange(self.N): + self.R[i] = rotation_matrix_zyz(self.R[i], params[5+3*i], params[5+3*i+1], params[5+3*i+2]) + # Return the chi-squared value. return chi2(self.red_data, red_bc_data, self.red_errors)