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

Fix: QuantileDeltaMapping not working for seasonal grouping #1716

Merged
merged 6 commits into from
Apr 19, 2024

Conversation

saschahofmann
Copy link
Contributor

@saschahofmann saschahofmann commented Apr 18, 2024

Pull Request Checklist:

What kind of change does this PR introduce?

  • In sdba/utils.py interp_on_quantiles seasons are now cast to integers to ensure we can add_cyclic_bounds. For this, I also had to overwrite the get_index function of the Grouper class. On a first class, I think that makes sense since in any case it doesn't make much sense to interp a string variable.

Does this PR introduce a breaking change?

Hopefully not.

@github-actions github-actions bot added the sdba Issues concerning the sdba submodule. label Apr 18, 2024
@Zeitsperre Zeitsperre requested review from huard and aulemahal April 18, 2024 14:44
Copy link

Warning
This Pull Request is coming from a fork and must be manually tagged approved in order to perform additional testing.

Copy link
Collaborator

@aulemahal aulemahal left a comment

Choose a reason for hiding this comment

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

Nice! I was expecting something more complex, happy to see the solution is so simple.
Thanks!

@aulemahal aulemahal added the approved Approved for additional tests label Apr 19, 2024
@aulemahal aulemahal merged commit 93539ba into Ouranosinc:main Apr 19, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Approved for additional tests sdba Issues concerning the sdba submodule.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QuantileDeltaMapping adjustment fails with seasonal grouping
3 participants