Skip to content

Reading histograms with attached fit functions #744

Answered by jpivarski
FlorianBen asked this question in Q&A
Discussion options

You must be logged in to vote

My other example of a file with non-memberwise std::map serialization (#556) is also a histogram, and the std::map is the parameterization of a TFormula, which is a fit function (TF1) attached to the histogram. Your stack trace also shows that it failed while deserializing fFunctions, so I'm going to guess that it's the same thing. I've released a fix in Uproot 4.3.6. Try upgrading and seeing if it fixes the problem.

(In retrospect, I should have asked you to test on the git branch before merging it, because we could have adapted to any surprises that you encounter. But, oh well, at least it will be easier for you to test. Just pip install -U uproot and try again. If it doesn't work, then…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@FlorianBen
Comment options

Comment options

You must be logged in to vote
1 reply
@FlorianBen
Comment options

Answer selected by FlorianBen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants