Index: wflow-py/wflow/wflow_bmi.py =================================================================== diff -u -r817868557aba868707cbd4f13c39e90b6708d4f1 -rfb630c9f28a399af8c0a201eafe11e4b26d9a7dd --- wflow-py/wflow/wflow_bmi.py (.../wflow_bmi.py) (revision 817868557aba868707cbd4f13c39e90b6708d4f1) +++ wflow-py/wflow/wflow_bmi.py (.../wflow_bmi.py) (revision fb630c9f28a399af8c0a201eafe11e4b26d9a7dd) @@ -24,6 +24,9 @@ # The current pcraster framework needs a max number of timesteps :-( # This cannot be avoided at the moment (needs a rework) # set to 10000 for now + # .. todo:: + # Get name of module from ini file name + maxNrSteps = 10000 if "wflow_sbm.ini" in configfile: import wflow_sbm as wf @@ -70,6 +73,16 @@ + def get_time_units(self): + """ + + :return: time units as a CF convention string (http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/build/cf-conventions.html#time-coordinate) + + """ + + return self.dynModel.wf_supplyEpoch() + + def get_var_count(self): """ Return number of variables