You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I cannot reproduce this issue, it is also part of the tests, see for example test/bmi.j. Could you perhaps provide a bit more info on how this was tested? model.config.starttime and model.config.endtime are not string but DateTime types.
The top configuration loads fine, and updates fine. However, the BMI functions do not work due to the misconfiguration.
So I guess the problem is not in the BMI, but in the config parsing.
Yeah TOML has datetime support. If that is used it is working fine. But Wflow also accepts strings here, which are converted to datetime, though not in these BMI functions.
Wflow version checks
I have checked that this issue has not already been reported.
I have checked that this bug exists on the latest version of Wflow.
Reproducible Example
After bmi model initialization:
Current behaviour
Gives
MethodError: no method matching value -(::String)
(or similar)Desired behaviour
Gives the end/current time.
Additional Context
The subtractions don't work because
model.config.starttime
andmodel.config.endtime
are strings:The text was updated successfully, but these errors were encountered: