Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for method argument in ensemble_percentile #1732

Merged
merged 4 commits into from
May 1, 2024
Merged

Conversation

huard
Copy link
Collaborator

@huard huard commented Apr 25, 2024

Pull Request Checklist:

  • This PR addresses an already opened issue (for bug fixes / features)
  • Tests for the changes have been added (for bug fixes / features)
    • (If applicable) Documentation has been added / updated (for bug fixes / features)
  • 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?

  • Add method argument to ensemble_percentile. I chose to expose method rather than alpha, beta as it felt more user friendly, since this is what numpy and xarray use.

Does this PR introduce a breaking change?

No

Other information:

Raise an error if used with weights.

Note that test_calc_perc takes 26 sec. on my laptop to run. I think the test could be sped up by restricting computations to the things that are ultimately checked.

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.

This looks good!

@github-actions github-actions bot added the approved Approved for additional tests label May 1, 2024
@coveralls
Copy link

Coverage Status

coverage: 90.935% (-0.006%) from 90.941%
when pulling b203e2f on fix-1694
into 9050a19 on main.

@aulemahal aulemahal merged commit aed2058 into main May 1, 2024
19 checks passed
@aulemahal aulemahal deleted the fix-1694 branch May 1, 2024 19:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
approved Approved for additional tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement additional methods for ensemble_percentile
5 participants