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

Several basin related fixes #247

Merged
merged 4 commits into from
Feb 20, 2024
Merged

Several basin related fixes #247

merged 4 commits into from
Feb 20, 2024

Conversation

hboisgon
Copy link
Contributor

@hboisgon hboisgon commented Feb 20, 2024

Issue addressed

Fixes #245
Fixes #246

Explanation

For #245, seems there was only one case subcatch dtype was not np.int32. Rather than fixing the hydromt get_basin_geometry workflow I chose to force np.int32 dtype so that a different basins dtype in local hydrography would then also be supported.

For #246, just use the wflow_subcatch ID. I chose to just have this happen all the time rather than add an user option to still get random IDs.

Checklist

  • Updated tests or added new tests
  • Branch is up to date with main
  • Tests & pre-commit hooks pass
  • Updated documentation if needed

@hboisgon hboisgon self-assigned this Feb 20, 2024
Copy link
Collaborator

@dalmijn dalmijn left a comment

Choose a reason for hiding this comment

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

LGTM.

@dalmijn dalmijn merged commit 60b141b into main Feb 20, 2024
5 of 6 checks passed
@hboisgon hboisgon deleted the basin branch February 20, 2024 09:11
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.

In setup_outlets use the same IDs as the wflow_subcatch map Wrong dtype for wflow_subcatch map
2 participants