Author: bugman Date: Thu Jan 24 11:25:17 2013 New Revision: 18295 URL: http://svn.gna.org/viewcvs/relax?rev=18295&view=rev Log: Fixes for the align_fit.py N-state model system test script. The recently introduced Monte Carlo simulations and associated RDC and PCS error setting was failing when RDC or PCS data was missing. The script now checks the mode of operation and only sets errors if the corresponding data is present. Modified: trunk/test_suite/system_tests/scripts/n_state_model/align_fit.py Modified: trunk/test_suite/system_tests/scripts/n_state_model/align_fit.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/scripts/n_state_model/align_fit.py?rev=18295&r1=18294&r2=18295&view=diff ============================================================================== --- trunk/test_suite/system_tests/scripts/n_state_model/align_fit.py (original) +++ trunk/test_suite/system_tests/scripts/n_state_model/align_fit.py Thu Jan 24 11:25:17 2013 @@ -76,8 +76,10 @@ self._execute_uf('simplex', constraints=False, max_iter=500, uf_name='minimise') # Set up the errors needed for the simulations. -self._execute_uf(uf_name='rdc.set_errors', sd=1.0) -self._execute_uf(uf_name='pcs.set_errors', sd=0.1) +if ds.mode in ['rdc', 'all']: + self._execute_uf(uf_name='rdc.set_errors', sd=1.0) +if ds.mode in ['pcs', 'all']: + self._execute_uf(uf_name='pcs.set_errors', sd=0.1) # Monte Carlo simulations. self._execute_uf(uf_name='monte_carlo.setup', number=3)