Author: bugman Date: Wed Aug 11 23:17:42 2010 New Revision: 11478 URL: http://svn.gna.org/viewcvs/relax?rev=11478&view=rev Log: Fixes for the test_compile_2nd_matrix_pseudo_ellipse_order() unit test. The pec() function is not precise when the theta_x or theta_y cone angles are close to zero. Modified: 1.3/test_suite/unit_tests/_maths_fns/test_frame_order_matrix_ops.py Modified: 1.3/test_suite/unit_tests/_maths_fns/test_frame_order_matrix_ops.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_maths_fns/test_frame_order_matrix_ops.py?rev=11478&r1=11477&r2=11478&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/_maths_fns/test_frame_order_matrix_ops.py (original) +++ 1.3/test_suite/unit_tests/_maths_fns/test_frame_order_matrix_ops.py Wed Aug 11 23:17:42 2010 @@ -510,17 +510,18 @@ """Check if compile_2nd_matrix_pseudo_ellipse() can return the identity matrix for order.""" # Calculate the frame order matrix. - f2 = compile_2nd_matrix_pseudo_ellipse(self.f2_temp, self.R_temp, 0.0, 0.0, 0.0, 1e-10, 1e-10, 1e-10) + f2 = compile_2nd_matrix_pseudo_ellipse(self.f2_temp, self.R_temp, 0.0, 0.0, 0.0, 1e-2, 1e-2, 1e-10) # Print outs. print_frame_order_2nd_degree(self.I_order, "Identity for order") print_frame_order_2nd_degree(f2, "Compiled frame order") - - # Check the values. - for i in range(9): - for j in range(9): - print "Element %s, %s." % (i, j) - self.assertAlmostEqual(f2[i, j], self.I_order[i, j]) + print_frame_order_2nd_degree(f2-self.I_order, "difference") + + # Check the values. + for i in range(9): + for j in range(9): + print "Element %s, %s." % (i, j) + self.assertAlmostEqual(f2[i, j], self.I_order[i, j], 4) def test_compile_2nd_matrix_pseudo_ellipse_restriction_test(self):