Skip to content

Separate Hazard xarray reader into its own module #1063

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

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

peanutfun
Copy link
Member

@peanutfun peanutfun commented Jun 18, 2025

Changes proposed in this PR:

  • Move code of Hazard.from_raster_xarray into a separate module. This avoids an excessively long and complicated single function.
  • Deprecate Hazard.from_raster_xarray_file. The module separation lets us handle files and datasets elegantly without a separate method.
  • Minimal adjustments to the tests. All should still work like before.

PR Author Checklist

PR Reviewer Checklist

@peanutfun peanutfun marked this pull request as ready for review June 19, 2025 09:19
@peanutfun
Copy link
Member Author

Tests fail only in Petals, but unrelated to this PR, see CLIMADA-project/climada_petals#177

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.

1 participant