mailr11057 - /1.3/test_suite/system_tests/diffusion_tensor.py


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

Header


Content

Posted by edward on March 29, 2010 - 17:40:
Author: bugman
Date: Mon Mar 29 17:40:08 2010
New Revision: 11057

URL: http://svn.gna.org/viewcvs/relax?rev=11057&view=rev
Log:
The spheroid diffusion tensor optimisation test now checks the values.


Modified:
    1.3/test_suite/system_tests/diffusion_tensor.py

Modified: 1.3/test_suite/system_tests/diffusion_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/diffusion_tensor.py?rev=11057&r1=11056&r2=11057&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/diffusion_tensor.py (original)
+++ 1.3/test_suite/system_tests/diffusion_tensor.py Mon Mar 29 17:40:08 2010
@@ -566,3 +566,12 @@
 
         # Execute the script.
         self.interpreter.run(script_file=__main__.install_path + 
sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'diff_tensor'+sep+'tensor_opt.py')
+
+        # Check the values.
+        self.assertAlmostEqual(cdp.chi2, 0.0)
+        self.assertEqual(cdp.diff_tensor.fixed, False)
+        self.assertEqual(cdp.diff_tensor.type, 'spheroid')
+        self.assertAlmostEqual(cdp.diff_tensor.tm * 1e9, 1.0/(6.0*7e7/3.0) * 
1e9)
+        self.assertAlmostEqual(cdp.diff_tensor.Da * 1e-7, 1.0)
+        self.assertAlmostEqual(cdp.diff_tensor.theta, 2.0)
+        self.assertAlmostEqual(cdp.diff_tensor.phi, pi-0.5)




Related Messages


Powered by MHonArc, Updated Thu Apr 01 00:00:04 2010