Index: wflow-py/Sandbox/wflow_usle.py =================================================================== diff -u -r58f139b2afc2424fc9f8796934878bd6e49c31de -r12ea40dc08628f654753679e0972e87b7bb12f7a --- wflow-py/Sandbox/wflow_usle.py (.../wflow_usle.py) (revision 58f139b2afc2424fc9f8796934878bd6e49c31de) +++ wflow-py/Sandbox/wflow_usle.py (.../wflow_usle.py) (revision 12ea40dc08628f654753679e0972e87b7bb12f7a) @@ -55,8 +55,9 @@ def usage(*args): sys.stdout = sys.stderr - for msg in args: print(msg) - print(__doc__) + for msg in args: + print msg + print __doc__ sys.exit(0) @@ -470,19 +471,18 @@ setup needed. """ - self.logger.info("Reading initial conditions...") - #: It is advised to use the wf_resume() function - #: here which pick up the variable save by a call to wf_suspend() - try: - self.wf_resume(self.Dir + "/instate/") - except: - self.logger.warn("Cannot load initial states, setting to default") - for s in self.stateVariables(): - exec("self." + s + " = cover(1.0)") + self.logger.info("Reading initial conditions...") + #: It is advised to use the wf_resume() function + #: here which pick up the variable save by a call to wf_suspend() + try: + self.wf_resume(self.Dir + "/instate/") + except: + self.logger.warn("Cannot load initial states, setting to default") + for s in self.stateVariables(): + exec "self." + s + " = cover(1.0)" - - def default_summarymaps(self): - """ + def default_summarymaps(self): + """ *Optional* Return a default list of variables to report as summary maps in the outsum dir.