Author: bugman Date: Fri Jan 27 09:47:51 2012 New Revision: 15267 URL: http://svn.gna.org/viewcvs/relax?rev=15267&view=rev Log: Triplicated the free rotor frame order model system tests. The additional system tests check the models with either no RDC data or no PCS data. Modified: branches/frame_order_testing/test_suite/system_tests/frame_order.py Modified: branches/frame_order_testing/test_suite/system_tests/frame_order.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_testing/test_suite/system_tests/frame_order.py?rev=15267&r1=15266&r2=15267&view=diff ============================================================================== --- branches/frame_order_testing/test_suite/system_tests/frame_order.py (original) +++ branches/frame_order_testing/test_suite/system_tests/frame_order.py Fri Jan 27 09:47:51 2012 @@ -189,12 +189,96 @@ self.assertAlmostEqual(cdp.chi2, 13.8, 1, msg=self.mesg) + def test_cam_free_rotor_no_rdc(self): + """Test the free rotor frame order model of CaM.""" + + # Setup. + ds.flag_rdc = False + ds.flag_pcs = True + ds.flag_opt = False + + # Execute the script. + self.interpreter.run(script_file=status.install_path + sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'frame_order'+sep+'cam'+sep+'free_rotor.py') + + # Switch back to the original pipe. + self.interpreter.pipe.switch('frame order') + + # Get the debugging message. + self.mesg = self.mesg_opt_debug() + + # Check the chi2 value. + self.assertAlmostEqual(cdp.chi2, 13.8, 1, msg=self.mesg) + + + def test_cam_free_rotor_no_pcs(self): + """Test the free rotor frame order model of CaM.""" + + # Setup. + ds.flag_rdc = True + ds.flag_pcs = False + ds.flag_opt = False + + # Execute the script. + self.interpreter.run(script_file=status.install_path + sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'frame_order'+sep+'cam'+sep+'free_rotor.py') + + # Switch back to the original pipe. + self.interpreter.pipe.switch('frame order') + + # Get the debugging message. + self.mesg = self.mesg_opt_debug() + + # Check the chi2 value. + self.assertAlmostEqual(cdp.chi2, 13.8, 1, msg=self.mesg) + + def test_cam_free_rotor2(self): """Test the second free rotor frame order model of CaM.""" # Setup. ds.flag_rdc = True ds.flag_pcs = True + ds.flag_opt = False + + # Execute the script. + self.interpreter.run(script_file=status.install_path + sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'frame_order'+sep+'cam'+sep+'free_rotor2.py') + + # Switch back to the original pipe. + self.interpreter.pipe.switch('frame order') + + # Get the debugging message. + self.mesg = self.mesg_opt_debug() + + # Check the chi2 value. + self.assertAlmostEqual(cdp.chi2, 0.0, 1, msg=self.mesg) + + + def test_cam_free_rotor2_no_rdc(self): + """Test the second free rotor frame order model of CaM.""" + + # Setup. + ds.flag_rdc = False + ds.flag_pcs = True + ds.flag_opt = False + + # Execute the script. + self.interpreter.run(script_file=status.install_path + sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'frame_order'+sep+'cam'+sep+'free_rotor2.py') + + # Switch back to the original pipe. + self.interpreter.pipe.switch('frame order') + + # Get the debugging message. + self.mesg = self.mesg_opt_debug() + + # Check the chi2 value. + self.assertAlmostEqual(cdp.chi2, 0.0, 1, msg=self.mesg) + + + def test_cam_free_rotor2_no_pcs(self): + """Test the second free rotor frame order model of CaM.""" + + # Setup. + ds.flag_rdc = True + ds.flag_pcs = False ds.flag_opt = False # Execute the script.