Author: bugman Date: Thu Aug 4 11:41:31 2011 New Revision: 14110 URL: http://svn.gna.org/viewcvs/relax?rev=14110&view=rev Log: The value.write user function now also adds to the cdp.result_files structure. Modified: 1.3/generic_fns/value.py Modified: 1.3/generic_fns/value.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/value.py?rev=14110&r1=14109&r2=14110&view=diff ============================================================================== --- 1.3/generic_fns/value.py (original) +++ 1.3/generic_fns/value.py Thu Aug 4 11:41:31 2011 @@ -31,7 +31,7 @@ from generic_fns import minimise, pipes from generic_fns.mol_res_spin import exists_mol_res_spin_data, generate_spin_id_data_array, return_spin, spin_loop from relax_errors import RelaxError, RelaxNoSequenceError, RelaxNoSpinError, RelaxParamSetError, RelaxValueError -from relax_io import open_write_file, read_spin_data, write_spin_data +from relax_io import get_file_path, open_write_file, read_spin_data, write_spin_data import specific_fns @@ -400,6 +400,7 @@ raise RelaxNoSequenceError # Open the file for writing. + file_path = get_file_path(file, dir) file = open_write_file(file, dir, force) # Write the data. @@ -407,6 +408,11 @@ # Close the file. file.close() + + # Add the file to the results file list. + if not hasattr(cdp, 'result_files'): + cdp.result_files = [] + cdp.result_files.append(['text', file_path]) def write_data(param=None, file=None, bc=False, return_value=None):