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

New keyword parameter to cf.histogram: density #795

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

davidhassell
Copy link
Collaborator

Fixes #794

@davidhassell davidhassell added the enhancement New feature or request label Jul 16, 2024
@davidhassell davidhassell added this to the NEXT VERSION milestone Jul 16, 2024
@sadielbartholomew
Copy link
Member

Wanting a review, @davidhassell?

@davidhassell
Copy link
Collaborator Author

Thanks, but I think Jonathan's got this one covered :)

Copy link
Collaborator

@JonathanGregory JonathanGregory left a comment

Choose a reason for hiding this comment

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

Thanks, David. I think it's fine, as far as I can tell. Is "out.override_units(Units(), inplace=True)" deleting the units? If so, I don't think you need to, or should - they're probably correct. The pdf from a temperature histogram, for example, has units of K-1.

@davidhassell
Copy link
Collaborator Author

Good point on the units - I'll fix that.

@davidhassell
Copy link
Collaborator Author

@JonathanGregory, is this better: 8e5487f ?

Copy link
Collaborator

@JonathanGregory JonathanGregory left a comment

Choose a reason for hiding this comment

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

Yes, I think the units are fine now. Thanks.

@sadielbartholomew
Copy link
Member

Thanks, but I think Jonathan's got this one covered :)

Oops sorry David, I missed that part somehow and thought you'd forgot to assign anyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

normalisation of cf.histogram
3 participants