mailr22066 - /branches/double_rotor/test_suite/system_tests/scripts/frame_order/cam/generate_rotor2_distribution.py


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

Header


Content

Posted by edward on January 29, 2014 - 17:07:
Author: bugman
Date: Wed Jan 29 17:07:10 2014
New Revision: 22066

URL: http://svn.gna.org/viewcvs/relax?rev=22066&view=rev
Log:
Fix for the Frame_order.test_generate_rotor2_distribution system test.

The rotation() method now must accept the motion_index keyword argument.


Modified:
    
branches/double_rotor/test_suite/system_tests/scripts/frame_order/cam/generate_rotor2_distribution.py

Modified: 
branches/double_rotor/test_suite/system_tests/scripts/frame_order/cam/generate_rotor2_distribution.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/double_rotor/test_suite/system_tests/scripts/frame_order/cam/generate_rotor2_distribution.py?rev=22066&r1=22065&r2=22066&view=diff
==============================================================================
--- 
branches/double_rotor/test_suite/system_tests/scripts/frame_order/cam/generate_rotor2_distribution.py
 (original)
+++ 
branches/double_rotor/test_suite/system_tests/scripts/frame_order/cam/generate_rotor2_distribution.py
 Wed Jan 29 17:07:10 2014
@@ -29,11 +29,11 @@
         self.build_axes = self.build_axes_alt
 
 
-    def rotation(self, i):
+    def rotation(self, i, motion_index=0):
         """Set up the rotation for state i."""
 
         # The rotation angle.
-        angle = (i - (self.N-1)/2) * self.INC / 360.0 * 2.0 * pi
+        angle = (i - (self.N-1)/2) * self.INC[motion_index] / 360.0 * 2.0 * 
pi
 
         # The rotation matrix.
         axis_angle_to_R(self.axes[:, 2], angle, self.R)




Related Messages


Powered by MHonArc, Updated Wed Jan 29 17:40:02 2014