scikit-hep / histbook

Versatile, high-performance histogram toolkit for Numpy.
BSD 3-Clause "New" or "Revised" License
109 stars 9 forks source link

Hist and Book should have metadata #18

Closed jpivarski closed 6 years ago

jpivarski commented 6 years ago

...to carry pyhf fit information even if it's irrelevant for filling. It's to make a 1:1 correspondence between booking trees and fit models. This will make life easier for the physicist.

jpivarski commented 6 years ago

Hist and GenericBook (superclass of all books) have attachments, which can associate any JSON data to a histogram or book. It's carried through the serialization formats (JSON and Pickle).