Author: bugman Date: Wed Oct 12 15:40:08 2011 New Revision: 14839 URL: http://svn.gna.org/viewcvs/relax?rev=14839&view=rev Log: Bug fix for the setup of the N-state model target function. This is triggered by missing data. 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=14839&r1=14838&r2=14839&view=diff ============================================================================== --- 1.3/maths_fns/n_state_model.py (original) +++ 1.3/maths_fns/n_state_model.py Wed Oct 12 15:40:08 2011 @@ -215,9 +215,9 @@ # Set the RDC and PCS flags (indicating the presence of data). self.rdc_flag = True self.pcs_flag = True - if rdcs == None: + if rdcs == None or len(rdcs) == 0: self.rdc_flag = False - if pcs == None: + if pcs == None or len(pcs) == 0: self.pcs_flag = False # Some checks.