Author: bugman Date: Fri Jan 18 11:07:40 2013 New Revision: 18213 URL: http://svn.gna.org/viewcvs/relax?rev=18213&view=rev Log: Fix for the missing PCS data in the N-state model Monte Carlo simulations. This was caught by the N_state_model.test_mc_sim_failure system test. Modified: trunk/specific_fns/n_state_model.py Modified: trunk/specific_fns/n_state_model.py URL: http://svn.gna.org/viewcvs/relax/trunk/specific_fns/n_state_model.py?rev=18213&r1=18212&r2=18213&view=diff ============================================================================== --- trunk/specific_fns/n_state_model.py (original) +++ trunk/specific_fns/n_state_model.py Fri Jan 18 11:07:40 2013 @@ -2270,7 +2270,7 @@ if not hasattr(container, 'rdc_err'): raise RelaxError("The RDC errors are missing for the spin pair '%s' and '%s'." % (container.spin_id1, container.spin_id2)) - # No data. + # The error. if data_id[2] not in container.rdc_err: err = None else: @@ -2294,8 +2294,14 @@ if not hasattr(container, 'pcs_err'): raise RelaxError("The PCS errors are missing for spin '%s'." % data_id[0]) + # The error. + if data_id[2] not in container.pcs_err: + err = None + else: + err = container.pcs_err[data_id[2]] + # Append the data. - mc_errors.append(container.pcs_err[data_id[2]]) + mc_errors.append(err) # Return the errors. return mc_errors