Author: tlinnet
Date: Mon Oct  6 02:45:16 2014
New Revision: 26158

URL: http://svn.gna.org/viewcvs/relax?rev=26158&view=rev
Log:
Inserted last test in test_dx_map_clustered, to check out the written chi2 
values are as expected.

Bug #22754 (https://gna.org/bugs/index.php?22754): The minimise.calculate() 
does not calculate chi2 value for clustered residues.

Modified:
    trunk/test_suite/system_tests/relax_disp.py

Modified: trunk/test_suite/system_tests/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/relax_disp.py?rev=26158&r1=26157&r2=26158&view=diff
==============================================================================
--- trunk/test_suite/system_tests/relax_disp.py (original)
+++ trunk/test_suite/system_tests/relax_disp.py Mon Oct  6 02:45:16 2014
@@ -3087,6 +3087,7 @@
 
         ## Check for file creation
         # Set filepaths.
+        map_name = get_file_path(file_name=file_name_map, dir=result_dir)
         map_cfg = get_file_path(file_name=file_name_map+".cfg", dir=result_dir)
         map_net = get_file_path(file_name=file_name_map+".net", dir=result_dir)
         map_general = get_file_path(file_name=file_name_map+".general", 
dir=result_dir)
@@ -3100,6 +3101,15 @@
         self.assert_(access(map_general, F_OK))
         self.assert_(access(point_general, F_OK))
         self.assert_(access(point_point, F_OK))
+
+        # Open the file, and assert the chi2 value is as expected.
+        get_data = extract_data(file=map_name)
+
+        # Extract line 0, column 0.
+        test = float(get_data[line_chi2-1][0])
+
+        # Assert.
+        self.assertAlmostEqual(test, pre_chi2,  6)
 
 
     def test_estimate_r2eff_err(self):


_______________________________________________
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

Reply via email to