Author: bugman Date: Thu Nov 22 10:43:31 2007 New Revision: 3799 URL: http://svn.gna.org/viewcvs/relax?rev=3799&view=rev Log: Changed the 'file' arg to 'state' in the functions of the generic_fns.state module. Modified: 1.3/generic_fns/state.py Modified: 1.3/generic_fns/state.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/state.py?rev=3799&r1=3798&r2=3799&view=diff ============================================================================== --- 1.3/generic_fns/state.py (original) +++ 1.3/generic_fns/state.py Thu Nov 22 10:43:31 2007 @@ -28,11 +28,11 @@ from relax_io import open_read_file, open_write_file -def load_state(file=None, dir_name=None, compress_type=1): +def load_state(state=None, dir_name=None, compress_type=1): """Function for loading a saved program state.""" # Open the file for reading. - file = open_read_file(file_name=file, dir=dir_name, compress_type=compress_type) + file = open_read_file(file_name=state, dir=dir_name, compress_type=compress_type) # Unpickle the data class. state = load(file) @@ -67,11 +67,11 @@ del state -def save_state(file=None, dir=None, force=0, compress_type=1): +def save_state(state=None, dir=None, force=0, compress_type=1): """Function for saving the program state.""" # Open the file for writing. - file = open_write_file(file_name=file, dir=dir, force=force, compress_type=compress_type) + file = open_write_file(file_name=state, dir=dir, force=force, compress_type=compress_type) # Pickle the data class and write it to file dump(relax_data_store, file, 1)