Author: bugman Date: Fri Sep 12 17:33:54 2014 New Revision: 25808 URL: http://svn.gna.org/viewcvs/relax?rev=25808&view=rev Log: Created the Frame_order.test_pseudo_ellipse_zero_cone_angle system test. This is to catch for a bug in optimisation when the cone_theta_x is set to zero in the pseudo-ellipse models. Modified: branches/frame_order_cleanup/test_suite/system_tests/frame_order.py Modified: branches/frame_order_cleanup/test_suite/system_tests/frame_order.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/test_suite/system_tests/frame_order.py?rev=25808&r1=25807&r2=25808&view=diff ============================================================================== --- branches/frame_order_cleanup/test_suite/system_tests/frame_order.py (original) +++ branches/frame_order_cleanup/test_suite/system_tests/frame_order.py Fri Sep 12 17:33:54 2014 @@ -1547,6 +1547,24 @@ self.space_probe(ref_chi2=chi2, params=['ave_pos_alpha', 'ave_pos_beta', 'ave_pos_gamma', 'eigen_alpha', 'eigen_beta', 'eigen_gamma', 'cone_theta_x', 'cone_theta_y']) + def test_pseudo_ellipse_zero_cone_angle(self): + """Catch for a bug in optimisation when the cone_theta_x is set to zero in the pseudo-ellipse models.""" + + # Reset. + self.interpreter.reset() + + # Load the state file. + data_path = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'frame_order'+sep+'axis_permutations' + self.interpreter.state.load(data_path+sep+'cam_pseudo_ellipse') + + # Change the original parameters. + cdp.cone_theta_x = 0.0 + cdp.cone_theta_y = 2.0 + + # Optimisation. + self.interpreter.minimise.execute('simplex') + + def test_rigid_data_to_double_rotor_model(self): """Test the double rotor target function for the data from a rigid test molecule."""