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
rank_histogram
tied ranks
#364
Conversation
Hello @aaronspring! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-11-26 01:01:38 UTC |
Codecov Report
@@ Coverage Diff @@
## main #364 +/- ##
==========================================
- Coverage 94.58% 94.45% -0.14%
==========================================
Files 24 24
Lines 2661 2688 +27
==========================================
+ Hits 2517 2539 +22
- Misses 144 149 +5
Continue to review full report at Codecov.
|
#258 handled for |
@raspstephan interested in reviewing/trying out? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a good fix to #335. The changes LGTM and I've tested the function out on some sample distributions with tied ranks and the behaviour seems correct.
I have provided a suggestion that might speed things up faster, but overall LGTM.
thanks for the review @benowen-bom implemented your suggestion and it is great to rely on apply_on_axis which is a loop. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me - thanks @aaronspring and @benowen-bom! One very minor comment
Awesome, thanks @aaronspring for implementing this! |
Description
Closes #335
Type of change
How Has This Been Tested?
Checklist (while developing)
pytest
, if necessary.Pre-Merge Checklist (final steps)
References
Hamill, T. M. (2001). Interpretation of Rank Histograms for Verifying Ensemble Forecasts. Monthly Weather Review, 129(3), 550–560. doi: 10/dkkvh3