mailr10461 - /1.3/generic_fns/state.py


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

Header


Content

Posted by edward on January 28, 2010 - 09:37:
Author: bugman
Date: Thu Jan 28 09:37:58 2010
New Revision: 10461

URL: http://svn.gna.org/viewcvs/relax?rev=10461&view=rev
Log:
The generic_fns.state.load_state() function can now have the verbosity level 
changed.


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=10461&r1=10460&r2=10461&view=diff
==============================================================================
--- 1.3/generic_fns/state.py (original)
+++ 1.3/generic_fns/state.py Thu Jan 28 09:37:58 2010
@@ -98,19 +98,21 @@
     return True
 
 
-def load_state(state=None, dir=None, force=False):
+def load_state(state=None, dir=None, verbosity=1, force=False):
     """Function for loading a saved program state.
 
     @keyword state:     The saved state file.
     @type state:        str
     @keyword dir:       The path of the state file.
     @type dir:          str
+    @keyword verbosity: The verbosity level.
+    @type verbosity:    int
     @keyword force:     If True, the relax data store will be reset prior to 
state loading.
     @type force:        bool
     """
 
     # Open the file for reading.
-    file = open_read_file(file_name=state, dir=dir)
+    file = open_read_file(file_name=state, dir=dir, verbosity=verbosity)
 
     # Determine the format of the file.
     format = determine_format(file)




Related Messages


Powered by MHonArc, Updated Thu Jan 28 09:40:03 2010