Author: bugman
Date: Sun Nov 16 14:57:22 2014
New Revision: 26586

URL: http://svn.gna.org/viewcvs/relax?rev=26586&view=rev
Log:
Created a system test to catch a rare relaxation data loading problem.


Modified:
    trunk/test_suite/system_tests/model_free.py

Modified: trunk/test_suite/system_tests/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/model_free.py?rev=26586&r1=26585&r2=26586&view=diff
==============================================================================
--- trunk/test_suite/system_tests/model_free.py (original)
+++ trunk/test_suite/system_tests/model_free.py Sun Nov 16 14:57:22 2014
@@ -488,6 +488,19 @@
         # Test the model.
         self.assertEqual(cdp.mol[0].res[1].spin[0].model, 'm4')
         self.assertEqual(cdp.mol[0].res[1].spin[0].params, ['s2', 'te', 'rex'])
+
+
+    def test_data_loading_failures(self):
+        """Catch a failure when loading relaxation data."""
+
+        # The data directory.
+        dir = status.install_path + 
sep+'test_suite'+sep+'shared_data'+sep+'model_free'+sep+'sphere'
+
+        # Set up the spin systems.
+        self.interpreter.sequence.read(file='noe.500.out', dir=dir, 
spin_id_col=None, mol_name_col=1, res_num_col=2, res_name_col=3, 
spin_num_col=4, spin_name_col=5, sep=None, spin_id=None)
+
+        # Load the data.
+        self.interpreter.relax_data.read(ri_id='noe500', ri_type='NOE', 
frq=500000000.0, file='noe.500.out', dir=dir, spin_id_col=None, mol_name_col=1, 
res_num_col=2, res_name_col=3, spin_num_col=4, spin_name_col=5, data_col=6, 
error_col=7, sep=None, spin_id='@N')
 
 
     def test_dauvergne_protocol(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