Author: bugman Date: Tue Aug 12 10:49:16 2008 New Revision: 7165 URL: http://svn.gna.org/viewcvs/relax?rev=7165&view=rev Log: Fixes for the set up of the RDC constant array. None (or NaN after numpy converion) is placed into the list when other data exists but the RDC is missing. Modified: branches/rdc_analysis/specific_fns/n_state_model.py Modified: branches/rdc_analysis/specific_fns/n_state_model.py URL: http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/specific_fns/n_state_model.py?rev=7165&r1=7164&r2=7165&view=diff ============================================================================== --- branches/rdc_analysis/specific_fns/n_state_model.py (original) +++ branches/rdc_analysis/specific_fns/n_state_model.py Tue Aug 12 10:49:16 2008 @@ -491,6 +491,7 @@ if hasattr(spin, 'pcs'): rdcs.append([None]*len(cdp.align_tensors)) xh_vectors.append([None]*3) + dj.append(None) # Jump to the next spin. continue @@ -504,6 +505,7 @@ if hasattr(spin, 'pcs'): rdcs.append([None]*len(cdp.align_tensors)) xh_vectors.append([None]*3) + dj.append(None) # Jump to the next spin. continue @@ -536,7 +538,7 @@ xh_vect_numpy[spin_index, state_index] = xh_vectors[spin_index][state_index] # Return the data structures. - return rdcs_numpy, xh_vect_numpy, array(dj) + return rdcs_numpy, xh_vect_numpy, array(dj, float64) def __minimise_setup_tensors(self):