mailr10188 - /1.3/maths_fns/rotation_matrix.py


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

Header


Content

Posted by edward on January 12, 2010 - 15:39:
Author: bugman
Date: Tue Jan 12 15:39:31 2010
New Revision: 10188

URL: http://svn.gna.org/viewcvs/relax?rev=10188&view=rev
Log:
Important bug fix for the R_to_euler() function.

The special angle wrapping when beta was negative is only for the ijk Euler 
notation when i == k!
When i != k, another type of wrapping will be required.


Modified:
    1.3/maths_fns/rotation_matrix.py

Modified: 1.3/maths_fns/rotation_matrix.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/maths_fns/rotation_matrix.py?rev=10188&r1=10187&r2=10188&view=diff
==============================================================================
--- 1.3/maths_fns/rotation_matrix.py (original)
+++ 1.3/maths_fns/rotation_matrix.py Tue Jan 12 15:39:31 2010
@@ -1602,7 +1602,7 @@
         gamma = alpha_old
 
     # Angle wrapping.
-    if -pi < beta < 0.0:
+    if alt and -pi < beta < 0.0:
         alpha = alpha + pi
         beta = -beta
         gamma = gamma + pi




Related Messages


Powered by MHonArc, Updated Wed Jan 13 11:20:03 2010