Author: bugman
Date: Sun Sep 14 13:22:08 2014
New Revision: 25825
URL: http://svn.gna.org/viewcvs/relax?rev=25825&view=rev
Log:
Created the Frame_order.test_count_sobol_points system test.
This will test that the frame_order.num_int_pts user function can correctly
count the number of
Sobol' integration points used for the current set of parameter values. This
frame_order.num_int_pts functionality does not exist yet.
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=25825&r1=25824&r2=25825&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 Sun Sep
14 13:22:08 2014
@@ -942,6 +942,23 @@
self.check_chi2(0.075038911707627859)
+ def test_count_sobol_points(self):
+ """Test the ability of the frame_order.num_int_pts user function to be
able to count the number of Sobol' points used for the current parameter
values."""
+
+ # Reset.
+ self.interpreter.reset()
+
+ # Load the state file.
+ 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')
+
+ # Set the number of integration points, and see if they can be counted.
+ self.interpreter.frame_order.num_int_pts(200000)
+
+ # Check the count.
+ self.assertEqual(cdp.used_sobol_points, 200)
+
+
def test_frame_order_pdb_model_failed_pivot(self):
"""Test the operation of the frame_order.pdb_model user function when
the pivot is outside of the PDB limits."""
_______________________________________________
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