Author: bugman Date: Mon Oct 20 22:46:37 2008 New Revision: 7869 URL: http://svn.gna.org/viewcvs/relax?rev=7869&view=rev Log: Modified the latex_mf_table.py script for the test suite. Modified: 1.3/test_suite/system_tests/scripts/latex_mf_table.py Modified: 1.3/test_suite/system_tests/scripts/latex_mf_table.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/scripts/latex_mf_table.py?rev=7869&r1=7868&r2=7869&view=diff ============================================================================== --- 1.3/test_suite/system_tests/scripts/latex_mf_table.py (original) +++ 1.3/test_suite/system_tests/scripts/latex_mf_table.py Mon Oct 20 22:46:37 2008 @@ -33,13 +33,13 @@ \input{results} """ -# The relax data storage object. +# relax module imports. from generic_fns.mol_res_spin import spin_loop from generic_fns import pipes - - -# Name of the results file. -RESULTS_FILE = 'final' +from relax_io import open_write_file + +# Path to the files. +DATA_PATH = sys.path[-1] + '/test_suite/shared_data/model_free/OMP' class Latex: @@ -47,13 +47,13 @@ """Convert the final results into a LaTeX table.""" # Create the data pipe. - pipe.create(RESULTS_FILE, 'mf') + pipe.create('latex', 'mf') # Load the model-free results. - results.read(RESULTS_FILE, dir=None) + results.read(file='final_results_trunc_1.3', dir=DATA_PATH) # Open the file. - self.file = open('results.tex', 'w') + self.file = open_write_file('devnull') # LaTeX header. self.latex_header()