Author: bugman
Date: Tue Sep 9 14:29:43 2014
New Revision: 25715
URL: http://svn.gna.org/viewcvs/relax?rev=25715&view=rev
Log:
Extended the Frame_order.test_axis_permutation system test to check
frame_order.permute_axes twice.
This will check that two calls to the frame_order.permute_axes user function
will restore the
original parameter values.
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=25715&r1=25714&r2=25715&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 Tue Sep
9 14:29:43 2014
@@ -257,6 +257,14 @@
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')
+ # Store the original parameters.
+ orig_cone_theta_x = cdp.cone_theta_x
+ orig_cone_theta_y = cdp.cone_theta_y
+ orig_cone_sigma_max = cdp.cone_sigma_max
+ orig_eigen_alpha = cdp.eigen_alpha
+ orig_eigen_beta = cdp.eigen_beta
+ orig_eigen_gamma = cdp.eigen_gamma
+
# Permute the axes.
self.interpreter.frame_order.permute_axes()
@@ -278,6 +286,17 @@
self.assertAlmostEqual(cdp.eigen_alpha, alpha)
self.assertAlmostEqual(cdp.eigen_beta, beta)
self.assertAlmostEqual(cdp.eigen_gamma, gamma)
+
+ # Permute the axes a second time - this should restore the original
result.
+ self.interpreter.frame_order.permute_axes()
+
+ # Check the values.
+ self.assertAlmostEqual(cdp.cone_theta_x, orig_cone_theta_x)
+ self.assertAlmostEqual(cdp.cone_theta_y, orig_cone_theta_y)
+ self.assertAlmostEqual(cdp.cone_sigma_max, orig_cone_sigma_max)
+ self.assertAlmostEqual(cdp.eigen_alpha, orig_eigen_alpha)
+ self.assertAlmostEqual(cdp.eigen_beta, orig_eigen_beta)
+ self.assertAlmostEqual(cdp.eigen_gamma, orig_eigen_gamma)
def test_cam_double_rotor(self):
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits