mailr26824 - /trunk/test_suite/system_tests/relax_fit.py


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

Header


Content

Posted by edward on November 29, 2014 - 10:03:
Author: bugman
Date: Sat Nov 29 10:03:27 2014
New Revision: 26824

URL: http://svn.gna.org/viewcvs/relax?rev=26824&view=rev
Log:
Created the Relax_fit.test_saturation_recovery system test.

This follows from the discussion of
http://thread.gmane.org/gmane.science.nmr.relax.devel/7308/focus=7369.


Modified:
    trunk/test_suite/system_tests/relax_fit.py

Modified: trunk/test_suite/system_tests/relax_fit.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/relax_fit.py?rev=26824&r1=26823&r2=26824&view=diff
==============================================================================
--- trunk/test_suite/system_tests/relax_fit.py  (original)
+++ trunk/test_suite/system_tests/relax_fit.py  Sat Nov 29 10:03:27 2014
@@ -503,6 +503,19 @@
                     self.assertEqual(orig_spin.peak_intensity[id], 
new_spin.peak_intensity[id])
 
 
+    def test_saturation_recovery(self):
+        """Test the fitting for the saturation recovery R1 experiment."""
+
+        # Execute the script.
+        self.script_exec(status.install_path + 
sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'relax_fit_saturation_recovery.py')
+
+        # Check the curve-fitting results.
+        spin = return_spin(":17@H")
+        self.assertAlmostEqual(spin.chi2, 0.0)
+        self.assertAlmostEqual(spin.rx, 0.5)
+        self.assertAlmostEqual(spin.i0/1e15, 1.0)
+
+
     def test_zooming_grid_search(self):
         """Test the relaxation curve fitting C modules."""
 




Related Messages


Powered by MHonArc, Updated Sat Nov 29 10:20:04 2014