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

Drop build_reduction_data and refactor the reduce module #386

Merged
merged 11 commits into from
Apr 26, 2024
Merged

Conversation

RondeauG
Copy link
Contributor

@RondeauG RondeauG commented Apr 18, 2024

Pull Request Checklist:

  • This PR addresses an already opened issue (for bug fixes / features)
    • This PR fixes #xyz
  • (If applicable) Documentation has been added / updated (for bug fixes / features).
  • (If applicable) Tests have been added.
  • This PR does not seem to break the templates.
  • CHANGES.rst has been updated (with summary of main changes).
    • Link to issue (:issue:number) and pull request (:pull:number) has been added.

What kind of change does this PR introduce?

  • xs.reduce_ensemble will now call xclim.ensembles.create_ensemble and xclim.ensembles.make_critera if required.

Does this PR introduce a breaking change?

  • The xscen.reduce module has been abandoned.
    • build_reduction_data has been made redundant by xclim.ensembles.make_critera and will be removed in a future release.
    • xscen.reduce.reduce_ensemble has been moved to xscen.ensembles.reduce_ensemble, as a module was no longer necessary.

Other information:

@RondeauG
Copy link
Contributor Author

@aulemahal @juliettelavoie I put this as a draft, because this is what I'm proposing:

  1. You review the changes as they are here.
  2. Once we're happy with them, I move reduce_ensemble to ensembles.py and we fully abandon reduce.py. --> This would mess up GitHub's track changes, which is why I'd like to have the first step.
  3. Alongside 2, I fix the documentation and add tests.

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.

I agree with those changes!

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@RondeauG RondeauG marked this pull request as ready for review April 23, 2024 15:51
@RondeauG RondeauG merged commit cd10751 into main Apr 26, 2024
23 checks passed
@RondeauG RondeauG deleted the testreduce branch April 26, 2024 15:17
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.

2 participants