Author: bugman Date: Wed Oct 12 16:55:39 2011 New Revision: 14844 URL: http://svn.gna.org/viewcvs/relax?rev=14844&view=rev Log: Fixes for the population N-state model target function. Modified: 1.3/maths_fns/n_state_model.py Modified: 1.3/maths_fns/n_state_model.py URL: http://svn.gna.org/viewcvs/relax/1.3/maths_fns/n_state_model.py?rev=14844&r1=14843&r2=14844&view=diff ============================================================================== --- 1.3/maths_fns/n_state_model.py (original) +++ 1.3/maths_fns/n_state_model.py Wed Oct 12 16:55:39 2011 @@ -1,6 +1,6 @@ ############################################################################### # # -# Copyright (C) 2008-2010 Edward d'Auvergne # +# Copyright (C) 2008-2011 Edward d'Auvergne # # # # This file is part of the program relax. # # # @@ -629,8 +629,8 @@ index = 0 for i in xrange(self.num_align): # Create tensor i from the parameters. - if self.fixed_tensors[i]: - to_tensor(self.A[i], params[5*i:5*i + 5]) + if not self.fixed_tensors[i]: + to_tensor(self.A[i], params[5*index:5*index + 5]) # Loop over the spin systems j. for j in xrange(self.num_spins):