Skip to content

Conversation

@YSelfTool
Copy link
Contributor

@YSelfTool YSelfTool commented Feb 16, 2024

Commit ec80b88 broke support for writing histograms that fulfill the Unified Histogram Interface, but are neither from hist nor from boost_histogram. UHI compatible histograms always have a function variances, but do not have a storage_type attribute, so that attribute should only be checked if the histogram is indeed from boost_histogram.

YSelfTool and others added 2 commits February 16, 2024 14:15
UHI-compatible histograms should have a function variances, but are not
required to have a storage_type. Also, if the histogram is not from hist
or boost_histogram, boost_histogram is None and the storage type check
fails.
@jpivarski jpivarski changed the title Allow writing generic UHI-compatible histograms fix: allow writing generic UHI-compatible histograms Feb 16, 2024
Copy link
Member

@jpivarski jpivarski left a comment

Choose a reason for hiding this comment

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

Thanks! We do want to ensure that arbitrary UHI histograms are writable, but this slipped in because we don't have any non-boost histogram types to test. (In principle, we could mock up a new histogram type that satisfies UHI, although that would be quite a bit more work.)

If you're done with this PR and it passes all tests, I'll merge it.

@jpivarski
Copy link
Member

Let me know if you're done and I'll merge it!

@jpivarski
Copy link
Member

I think this is done. I'm merging it now. Thanks!

@jpivarski jpivarski merged commit d4632ad into scikit-hep:main Feb 19, 2024
@jpivarski
Copy link
Member

@all-contributors please add @YSelfTool for code

@allcontributors
Copy link
Contributor

@jpivarski

I've put up a pull request to add @YSelfTool! 🎉

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