mailr19243 - in /branches/relax_disp/test_suite: shared_data/curve_fitting_disp/r2eff/ system_tests/relax_disp.py


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

Header


Content

Posted by edward on March 27, 2013 - 15:30:
Author: bugman
Date: Wed Mar 27 15:30:02 2013
New Revision: 19243

URL: http://svn.gna.org/viewcvs/relax?rev=19243&view=rev
Log:
Ported r8702 from the old relax_disp branch into the new branch.

The command used was:
svn merge -r8701:8702 
svn+ssh://bugman@xxxxxxxxxxx/svn/relax/branches/relax_disp@r18123 .

.....
  r8702 | semor | 2009-01-29 20:18:10 +0100 (Thu, 29 Jan 2009) | 3 lines
  Changed paths:
     A /branches/relax_disp/test_suite/shared_data/curve_fitting_disp/r2eff
     A 
/branches/relax_disp/test_suite/shared_data/curve_fitting_disp/r2eff/r2eff.out
     M /branches/relax_disp/test_suite/system_tests/relax_disp.py
  
  Started to implement the reading of 'r2eff' by relax_data.read() by first 
writing a system test.
.....


Added:
    branches/relax_disp/test_suite/shared_data/curve_fitting_disp/r2eff/
      - copied from r8702, 
branches/relax_disp/test_suite/shared_data/curve_fitting_disp/r2eff/
Modified:
    branches/relax_disp/test_suite/system_tests/relax_disp.py

Modified: branches/relax_disp/test_suite/system_tests/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/test_suite/system_tests/relax_disp.py?rev=19243&r1=19242&r2=19243&view=diff
==============================================================================
--- branches/relax_disp/test_suite/system_tests/relax_disp.py (original)
+++ branches/relax_disp/test_suite/system_tests/relax_disp.py Wed Mar 27 
15:30:02 2013
@@ -73,3 +73,23 @@
 
         # Execute the script.
         self.relax.interpreter.run(script_file=sys.path[-1] + 
'/test_suite/system_tests/scripts/relax_disp_cpmg_slow.py')
+
+
+    def test_read_r2eff(self):
+        """Test the reading of a file containing r2eff values."""
+
+        # Get the current data pipe.
+        cdp = pipes.get_pipe()
+
+        # Create the sequence data, and name the spins.
+        self.relax.interpreter._Residue.create(1, 'Gly')
+        self.relax.interpreter._Residue.create(2, 'Gly')
+        self.relax.interpreter._Residue.create(3, 'Gly')
+
+        # Read the file.
+        self.relax.interpreter._Relax_data.read('R2eff', '600', 600 * 1e6, 
'r2eff.out', dir=sys.path[-1] + 
"/test_suite/shared_data/curve_fitting_disp/r2eff")
+
+        # Test the data.
+        self.assertEqual(cdp.mol[0].res[0].spin[0].r2eff[0], 15.000)
+        self.assertEqual(cdp.mol[0].res[1].spin[0].r2eff[0], 4.2003)
+        self.assertEqual(cdp.mol[0].res[2].spin[0].r2eff[0], 7.2385)




Related Messages


Powered by MHonArc, Updated Wed Mar 27 15:40:02 2013