Author: bugman Date: Fri Sep 6 11:25:42 2013 New Revision: 20880 URL: http://svn.gna.org/viewcvs/relax?rev=20880&view=rev Log: Created 3 new dispersion system tests. These are for checking a new function that doesn't exist yet. The get_curve_type() function will be used to determine if the experiment corresponding to the given ID consists of exponential curves or of fixed time data. Modified: branches/relax_disp/test_suite/system_tests/relax_disp.py Modified: branches/relax_disp/test_suite/system_tests/relax_disp.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/test_suite/system_tests/relax_disp.py?rev=20880&r1=20879&r2=20880&view=diff ============================================================================== --- branches/relax_disp/test_suite/system_tests/relax_disp.py (original) +++ branches/relax_disp/test_suite/system_tests/relax_disp.py Fri Sep 6 11:25:42 2013 @@ -153,6 +153,51 @@ # Model selection - to catch the failure. self.interpreter.model_selection(method='AIC', modsel_pipe='final', bundle='relax_disp', pipes=['No Rex', 'CR72']) + + + def test_curve_type_cpmg_fixed_time(self): + """Test the curve type detection using the Dr. Flemming Hansen's CPMG fixed time test data.""" + + # Reset. + self.interpreter.reset() + + # Load the base data. + data_path = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'dispersion'+sep+'Hansen' + self.interpreter.state.load(data_path+sep+'r2eff_values') + + # The type. + curve_type = get_curve_type(id='500_133.33.in') + self.assertEqual(curve_type, 'fixed time') + + + def test_curve_type_r1rho_exponential(self, model=None): + """Test the curve type detection using the 'M61' exponential test data.""" + + # Reset. + self.interpreter.reset() + + # Load the base data. + data_path = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'dispersion'+sep+'r1rho_on_res_m61' + self.interpreter.state.load(data_path+sep+'r2eff_values') + + # The type. + curve_type = get_curve_type(id='nu_2000_ncyc9') + self.assertEqual(curve_type, 'exponential') + + + def test_curve_type_r1rho_fixed_time(self, model=None): + """Test the curve type detection using the 'TP02' fixed time test data.""" + + # Reset. + self.interpreter.reset() + + # Load the base data. + data_path = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'dispersion'+sep+'r1rho_off_res_tp02' + self.interpreter.state.load(data_path+sep+'r2eff_values') + + # The type. + curve_type = get_curve_type(id='nu_1000.0_500MHz') + self.assertEqual(curve_type, 'fixed time') def test_dpl94_data_to_dpl94(self):