mailr12789 - /1.3/test_suite/system_tests/relax_data.py


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

Header


Content

Posted by edward on March 03, 2011 - 15:39:
Author: bugman
Date: Thu Mar  3 15:39:58 2011
New Revision: 12789

URL: http://svn.gna.org/viewcvs/relax?rev=12789&view=rev
Log:
Added the test_back_calc2() relaxation data system test for back calculation 
of specific data.


Modified:
    1.3/test_suite/system_tests/relax_data.py

Modified: 1.3/test_suite/system_tests/relax_data.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/relax_data.py?rev=12789&r1=12788&r2=12789&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/relax_data.py (original)
+++ 1.3/test_suite/system_tests/relax_data.py Thu Mar  3 15:39:58 2011
@@ -61,3 +61,26 @@
 
             # Increment.
             index += 1
+
+
+    def test_back_calc2(self):
+        """Test the back calculation of specific relaxation data from 
model-free results."""
+
+        # Load the original state.
+        self.interpreter.state.load(state='sphere_trunc', 
dir=status.install_path + 
sep+'test_suite'+sep+'shared_data'+sep+'model_free'+sep+'bug_14941_local_tm_global_selection')
+
+        # Back calculate the relaxation data.
+        self.interpreter.relax_data.back_calc('NOE_500')
+
+        # The actual data.
+        ri_data_bc = [{'NOE_500': 0.51989421750722165},
+                      {'NOE_500': 0.57703969243842634}]
+
+        # Loop over the spins.
+        index = 0
+        for spin in spin_loop():
+            # Check the back calculated data.
+            self.assertEqual(spin.ri_data_bc, ri_data_bc[index])
+
+            # Increment.
+            index += 1




Related Messages


Powered by MHonArc, Updated Thu Mar 03 16:00:02 2011