Index: wflow-py/Sandbox/wflow_vegetation.py =================================================================== diff -u -r4143969ebd6b276284ea6e4198ee693bd6ab506a -r12ea40dc08628f654753679e0972e87b7bb12f7a --- wflow-py/Sandbox/wflow_vegetation.py (.../wflow_vegetation.py) (revision 4143969ebd6b276284ea6e4198ee693bd6ab506a) +++ wflow-py/Sandbox/wflow_vegetation.py (.../wflow_vegetation.py) (revision 12ea40dc08628f654753679e0972e87b7bb12f7a) @@ -34,8 +34,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) @@ -191,19 +192,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.