-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DIMR, RainfallRunoffModel & FMModel are not read #223
Comments
@arthurvd regarding the error DIMR(filepath=Path("path_to/dimr_config.xml")); could it be that an RTC-component is not implemented yet? I guess as it would be expected below this line in the dimr-model:
If so, is there a work-around? |
regarding the error in RainfallRunoffModel; tracked it to this line:
substring = get_substring_between(line, key_start, key_end) key_start = BRCH, key_end = brch. The file send contains brch in the nm property, which effectively results in a substring containing only id. Suggest the following fix: HYDROLIB-core/hydrolib/core/utils.py Line 100 in a2ddd6d
by: index_end = source.rfind(end, index_start) then the function get_substring_between will find the substring between the most left key_start and the most right key_end |
regarding the issue at FMModel: HYDROLIB does not seem to be able to handle bc-files with only 1x [Forcing] as in the example: Solved it by adding _split_to_list = make_list_validator("forcing") in ForcingModel: HYDROLIB-core/hydrolib/core/io/bc/models.py Line 211 in 63fa0c6
|
improvement as suggested here: #223 (comment)
* Update utils.py improvement as suggested here: #223 (comment) * Update models.py allow a single [forcing] block in bc-files * autoformat: isort & black Co-authored-by: d2hydro <d2hydro@users.noreply.github.com>
Describe the bug
This model runs perfectly fine in DHYDRO, but won't be read by HYDROLIB-core v0.2.1: https://we.tl/t-GWED4R2YLX
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All models are accepted as they are by DHYDRO
Screenshots
Version info (please complete the following information):
Additional context
Please help
The text was updated successfully, but these errors were encountered: