mailr10052 - /1.3/test_suite/unit_tests/_maths_fns/test_rotation_matrix.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on December 02, 2009 - 16:25:
Author: bugman
Date: Wed Dec  2 16:25:33 2009
New Revision: 10052

URL: http://svn.gna.org/viewcvs/relax?rev=10052&view=rev
Log:
Fixed the Euler angle conversion unit tests for the beta = 0 degeneracy.


Modified:
    1.3/test_suite/unit_tests/_maths_fns/test_rotation_matrix.py

Modified: 1.3/test_suite/unit_tests/_maths_fns/test_rotation_matrix.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_maths_fns/test_rotation_matrix.py?rev=10052&r1=10051&r2=10052&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_maths_fns/test_rotation_matrix.py (original)
+++ 1.3/test_suite/unit_tests/_maths_fns/test_rotation_matrix.py Wed Dec  2 
16:25:33 2009
@@ -546,9 +546,9 @@
         print(("gamma: %s\n" % gamma_new))
 
         # Checks.
-        self.assertAlmostEqual(alpha, alpha_new)
+        self.assertAlmostEqual(alpha+gamma, alpha_new)
         self.assertAlmostEqual(beta, beta_new)
-        self.assertAlmostEqual(gamma, gamma_new)
+        self.assertAlmostEqual(0.0, gamma_new)
 
 
     def test_R_to_euler_zyz_a1_b1_g0(self):
@@ -645,9 +645,9 @@
         print(("gamma: %s\n" % gamma_new))
 
         # Checks.
-        self.assertAlmostEqual(alpha, alpha_new)
+        self.assertAlmostEqual(alpha+gamma, alpha_new)
         self.assertAlmostEqual(beta, beta_new)
-        self.assertAlmostEqual(gamma, gamma_new)
+        self.assertAlmostEqual(0.0, gamma_new)
 
 
     def test_R_to_euler_zyz_a1_b1_g1(self):
@@ -782,9 +782,9 @@
         a, b, g = reverse_euler_zyz(a, b, g)
 
         # Check the reversed, reverse angles.
-        self.assertAlmostEqual(a, euler[0])
+        self.assertAlmostEqual(a, euler[0]+euler[2])
         self.assertAlmostEqual(b, euler[1])
-        self.assertAlmostEqual(g, euler[2])
+        self.assertAlmostEqual(g, 0.0)
 
 
     def test_reverse_euler_zyz_a1_b1_g0(self):
@@ -830,9 +830,9 @@
         a, b, g = reverse_euler_zyz(a, b, g)
 
         # Check the reversed, reverse angles.
-        self.assertAlmostEqual(a, euler[0])
+        self.assertAlmostEqual(a, euler[0]+euler[2])
         self.assertAlmostEqual(b, euler[1])
-        self.assertAlmostEqual(g, euler[2])
+        self.assertAlmostEqual(g, 0.0)
 
 
     def test_reverse_euler_zyz_a1_b1_g1(self):




Related Messages


Powered by MHonArc, Updated Thu Dec 03 18:00:02 2009