Author: bugman Date: Mon Jan 21 17:10:08 2008 New Revision: 4879 URL: http://svn.gna.org/viewcvs/relax?rev=4879&view=rev Log: Bug fix for the maths_fns.n_state_model.func() optimisation target function. The probability for state N was still being incorrectly calculated!!! 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=4879&r1=4878&r2=4879&view=diff ============================================================================== --- branches/N_state_model/maths_fns/n_state_model.py (original) +++ branches/N_state_model/maths_fns/n_state_model.py Mon Jan 21 17:10:08 2008 @@ -100,7 +100,7 @@ self.RT[c] = transpose(self.R[c]) # The probability of state c. - if c <= self.N-1: + if c < self.N-1: pc = params[c] # The probability of state N (1 minus the pc of all other states).