Index: wflow-py/Sandbox/wflow_w3.py =================================================================== diff -u -ra99aae986e85d663473fa4ec5b1eacee73c418bd -r3d36073f779f6d9a5a34f6304d8e901b65061154 --- wflow-py/Sandbox/wflow_w3.py (.../wflow_w3.py) (revision a99aae986e85d663473fa4ec5b1eacee73c418bd) +++ wflow-py/Sandbox/wflow_w3.py (.../wflow_w3.py) (revision 3d36073f779f6d9a5a34f6304d8e901b65061154) @@ -49,7 +49,8 @@ def usage(*args): sys.stdout = sys.stderr - for msg in args: print(msg) + for msg in args: + print(msg) print(__doc__) sys.exit(0) @@ -1071,16 +1072,25 @@ for o, a in opts: - if o == '-C': caseName = a - if o == '-R': runId = a - if o == '-c': configfile = a - if o == '-s': timestepsecs = int(a) - - starttime = dt.datetime(1990,1,1) + if o == "-C": + caseName = a + if o == "-R": + runId = a + if o == "-c": + configfile = a + if o == "-s": + timestepsecs = int(a) + starttime = dt.datetime(1990, 1, 1) + if _lastTimeStep < _firstTimeStep: - print("The starttimestep (" + str(_firstTimeStep) + ") is smaller than the last timestep (" + str( - _lastTimeStep) + ")") + print( + "The starttimestep (" + + str(_firstTimeStep) + + ") is smaller than the last timestep (" + + str(_lastTimeStep) + + ")" + ) usage() myModel = WflowModel(wflow_cloneMap, caseName, runId, configfile)