Author: bugman Date: Thu Feb 12 11:17:34 2009 New Revision: 8793 URL: http://svn.gna.org/viewcvs/relax?rev=8793&view=rev Log: Bug fixes for the N-state model when N = 1. Modified: 1.3/maths_fns/pcs.py 1.3/maths_fns/rdc.py Modified: 1.3/maths_fns/pcs.py URL: http://svn.gna.org/viewcvs/relax/1.3/maths_fns/pcs.py?rev=8793&r1=8792&r2=8793&view=diff ============================================================================== --- 1.3/maths_fns/pcs.py (original) +++ 1.3/maths_fns/pcs.py Thu Feb 12 11:17:34 2009 @@ -97,7 +97,7 @@ for c in xrange(N): # The weights. if weights != None: - if c == N-1: + if N > 1 and c == N-1: pc = 1.0 - sum(weights, axis=0) else: pc = weights[c] @@ -169,7 +169,7 @@ for c in xrange(N): # The weights. if weights != None: - if c == N-1: + if N > 1 and c == N-1: pc = 1.0 - sum(weights, axis=0) else: pc = weights[c] Modified: 1.3/maths_fns/rdc.py URL: http://svn.gna.org/viewcvs/relax/1.3/maths_fns/rdc.py?rev=8793&r1=8792&r2=8793&view=diff ============================================================================== --- 1.3/maths_fns/rdc.py (original) +++ 1.3/maths_fns/rdc.py Thu Feb 12 11:17:34 2009 @@ -161,7 +161,7 @@ for k in xrange(K): # The weights. if weights != None: - if k == K-1: + if K > 1 and k == K-1: c = 1.0 - sum(weights, axis=0) else: c = weights[k] @@ -231,7 +231,7 @@ for c in xrange(N): # The weights. if weights != None: - if c == N-1: + if N > 1 and c == N-1: pc = 1.0 - sum(weights, axis=0) else: pc = weights[c]