Skip to content

Remove UserWarning from cf.Field.percentile#620

Merged
davidhassell merged 5 commits intoNCAS-CMS:mainfrom
davidhassell:percentile-fix
Mar 26, 2023
Merged

Remove UserWarning from cf.Field.percentile#620
davidhassell merged 5 commits intoNCAS-CMS:mainfrom
davidhassell:percentile-fix

Conversation

@davidhassell
Copy link
Copy Markdown
Collaborator

Fixes #619

@davidhassell davidhassell added this to the 3.14.2 milestone Mar 22, 2023
Copy link
Copy Markdown
Member

@sadielbartholomew sadielbartholomew left a comment

Choose a reason for hiding this comment

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

Good spot. Much more elegant, and nicer to users, to prevent the root cause of the warning to prevent it rather than just suppressing it in testing!

I've made one suggestion. Feel free to take it or leave it. Otherwise all is good, so merge at will. Thanks.

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.

cf.Field.percentile sometimes produces a numpy UserWarning

2 participants