Author: bugman
Date: Sun Nov 30 01:10:37 2014
New Revision: 26870
URL: http://svn.gna.org/viewcvs/relax?rev=26870&view=rev
Log:
Created the Relax_fit.test_inversion_recovery system test.
This simply calls Sébastien Morin's relax_fit_exp_3param_inv_neg.py system test
script, ported from
the inversion-recovery branch, and then checks the parameter values for the
single optimised spin.
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=26870&r1=26869&r2=26870&view=diff
==============================================================================
--- trunk/test_suite/system_tests/relax_fit.py (original)
+++ trunk/test_suite/system_tests/relax_fit.py Sun Nov 30 01:10:37 2014
@@ -454,6 +454,19 @@
self.check_curve_fitting()
+ def test_inversion_recovery(self):
+ """Test the fitting for the inversion recovery R1 experiment."""
+
+ # Execute the script.
+ self.script_exec(status.install_path +
sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'relax_fit_exp_3param_inv_neg.py')
+
+ # Check the curve-fitting results.
+ spin = return_spin(":4@N")
+ self.assertAlmostEqual(spin.rx, 1.2)
+ self.assertAlmostEqual(spin.i0, 30.0)
+ self.assertAlmostEqual(spin.iinf, 22.0)
+
+
def test_read_sparky(self):
"""The Sparky peak height loading test."""
_______________________________________________
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