Author: bugman Date: Mon Jan 21 15:48:43 2008 New Revision: 4874 URL: http://svn.gna.org/viewcvs/relax?rev=4874&view=rev Log: Bug fix for the maths_fns.n_state_model.func() optimisation target function. The probability of state N was not being caught and calculated from the others. 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=4874&r1=4873&r2=4874&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 15:48:43 2008 @@ -97,7 +97,7 @@ self.RT[c] = transpose(self.R[c]) # The probability of state c. - if c < self.N: + if c <= self.N-1: pc = params[c] # The probability of state N (1 minus the pc of all other states).