Author: bugman Date: Thu May 22 19:55:47 2014 New Revision: 23362 URL: http://svn.gna.org/viewcvs/relax?rev=23362&view=rev Log: Created the test_ns_cpmg_2site_expanded_no_rex8() relaxation dispersion unit test. This is a demonstration commit, showing the 'NS CPMG 2-site expanded' model with no exchange when kex = 1e5. I.e. when the motion is too fast for exchange to be observed. This test should be used for all dispersion models to make sure that they model this edge case correctly as well. This follows from http://article.gmane.org/gmane.science.nmr.relax.devel/5906. Modified: trunk/test_suite/unit_tests/_lib/_dispersion/test_ns_cpmg_2site_expanded.py Modified: trunk/test_suite/unit_tests/_lib/_dispersion/test_ns_cpmg_2site_expanded.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/unit_tests/_lib/_dispersion/test_ns_cpmg_2site_expanded.py?rev=23362&r1=23361&r2=23362&view=diff ============================================================================== --- trunk/test_suite/unit_tests/_lib/_dispersion/test_ns_cpmg_2site_expanded.py (original) +++ trunk/test_suite/unit_tests/_lib/_dispersion/test_ns_cpmg_2site_expanded.py Thu May 22 19:55:47 2014 @@ -57,7 +57,7 @@ # Check all R2eff values. for i in range(self.num_points): - self.assertAlmostEqual(self.R2eff[i], 2.0) + self.assertAlmostEqual(self.R2eff[i], 2.0, 5) def param_conversion(self, pA=None, kex=None): @@ -154,3 +154,13 @@ # Calculate and check the R2eff values. self.calc_r2eff() + + + def test_ns_cpmg_2site_expanded_no_rex8(self): + """Test the r2eff_ns_cpmg_2site_expanded() function for no exchange when kex = 1e5.""" + + # Parameter reset. + self.kex = 1e5 + + # Calculate and check the R2eff values. + self.calc_r2eff()