mailr12837 - /branches/relax_disp/test_suite/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 May 31, 2011 - 12:56:
Author: bugman
Date: Tue May 31 12:56:16 2011
New Revision: 12837

URL: http://svn.gna.org/viewcvs/relax?rev=12837&view=rev
Log:
Fixes for the relaxation dispersion system tests.

The install path is now in the status object, and not in __main__.


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=12837&r1=12836&r2=12837&view=diff
==============================================================================
--- branches/relax_disp/test_suite/system_tests/relax_disp.py (original)
+++ branches/relax_disp/test_suite/system_tests/relax_disp.py Tue May 31 
12:56:16 2011
@@ -22,7 +22,6 @@
 
###############################################################################
 
 # Python module imports.
-import __main__
 from os import sep
 from shutil import rmtree
 from tempfile import mkdtemp
@@ -30,6 +29,7 @@
 # relax module imports.
 from base_classes import SystemTestCase
 from data import Relax_data_store; ds = Relax_data_store()
+from status import Status; status = Status()
 
 
 class Relax_disp(SystemTestCase):
@@ -61,7 +61,7 @@
         fast-exchange limit."""
 
         # Execute the script.
-        self.interpreter.run(script_file=__main__.install_path + 
sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'relax_disp_cpmg_fast.py')
+        self.interpreter.run(script_file=status.install_path + 
sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'relax_disp_cpmg_fast.py')
 
 
     def test_curve_fitting_cpmg_slow(self):
@@ -69,7 +69,7 @@
         slow-exchange limit."""
 
         # Execute the script.
-        self.interpreter.run(script_file=__main__.install_path + 
sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'relax_disp_cpmg_slow.py')
+        self.interpreter.run(script_file=status.install_path + 
sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'relax_disp_cpmg_slow.py')
 
 
     def test_read_r2eff(self):
@@ -81,7 +81,7 @@
         self.interpreter.residue.create(3, 'Gly')
 
         # Read the file.
-        self.interpreter.relax_data.read('R2eff', '600', 600 * 1e6, 
'r2eff.out', dir=__main__.install_path + 
sep+'test_suite'+sep+'shared_data'+sep+'curve_fitting_disp'+sep+'r2eff')
+        self.interpreter.relax_data.read('R2eff', '600', 600 * 1e6, 
'r2eff.out', dir=status.install_path + 
sep+'test_suite'+sep+'shared_data'+sep+'curve_fitting_disp'+sep+'r2eff')
 
         # Test the data.
 




Related Messages


Powered by MHonArc, Updated Tue May 31 13:20:02 2011