Skip to content
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

Support reading wflow models with input and/or output directories in the toml #140

Merged
merged 10 commits into from Mar 14, 2023

Conversation

JoostBuitink
Copy link
Collaborator

Last year, the option to specify a dir_input and or dir_output was added to Wflow.jl. However, these options were not know to hydromt_wflow, so reading the model would skip the input and/or output files when this is specified in the Wflow .toml file. These changes fix this, and also adds the dir_output to the default toml file to improve the user experience of Wflow.

Copy link
Contributor

@hboisgon hboisgon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice additions @JoostBuitink , thanks a lot!
I think really nice to change the default dir_output options as well: this however means that the built models will contain the change so good to check if the examples need to be updated and document the change in the changelog.

I also have a suggestion on how to insert dir_input and dir_output and suggest to apply the abs_path argument of get_config for them instead of the filename directly, might make it more robust.

hydromt_wflow/wflow.py Outdated Show resolved Hide resolved
hydromt_wflow/wflow.py Outdated Show resolved Hide resolved
@hboisgon
Copy link
Contributor

hboisgon commented Jan 9, 2023

Hi @JoostBuitink
Thanks for the changes! I left a small suggestion with the review :)

I see the tests are failing on glaciers though... not sure why... could you check it or do you prefer if I do?

@JoostBuitink
Copy link
Collaborator Author

Hi @hboisgon! Thanks for the quick review! I have included your changes, and am currently looking in to the failing glacier test. Will let you know if I need some help with that!

@JoostBuitink
Copy link
Collaborator Author

The failing test with the glaciers appears to be unrelated to this PR, as it also happend in another PR. I have created #143 to cover this problem

@hboisgon hboisgon merged commit 63aaff0 into main Mar 14, 2023
2 checks passed
@hboisgon hboisgon deleted the dir_output branch March 14, 2023 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants