Index: wflow-py/wflow/wflow_bmi.py =================================================================== diff -u -rba01b0e52c1381d7c8d87e10e44f03d688e998c5 -re27d0afdd07a07f344b793be87029591128be64c --- wflow-py/wflow/wflow_bmi.py (.../wflow_bmi.py) (revision ba01b0e52c1381d7c8d87e10e44f03d688e998c5) +++ wflow-py/wflow/wflow_bmi.py (.../wflow_bmi.py) (revision e27d0afdd07a07f344b793be87029591128be64c) @@ -298,7 +298,7 @@ """ :param start_time: time in units (seconds) since the epoch - :return: + :return: nothing """ dateobj = datetime.datetime.utcfromtimestamp(start_time) @@ -355,7 +355,8 @@ def save_state(self, destination_directory): """ - Ask the model to write its complete internal current state to one or more state files in the given directory. + Ask the model to write its complete internal current state to one or more state files in the + given directory. Afterwards the given directory should only contain the state files and nothing else. Input parameters: File destination_directory: the directory in which the state files should be written. @@ -364,7 +365,7 @@ def initialize(self, filename,loglevel=logging.DEBUG): """ - Initialise the model. Should be call before any other method. + Initialise the model. Should be called before any other method. :var filename: full path to the wflow ini file :var loglevel: optional loglevel (default == DEBUG) @@ -398,8 +399,7 @@ curtime = self.get_current_time() if curtime > time: - print("Time before current time.") - raise ValueError + raise ValueError("Time before current time.") timespan = time - curtime nrsteps = int(timespan/self.dynModel.timestepsecs)