-
Notifications
You must be signed in to change notification settings - Fork 67
not reading tprofile values #521
Comments
It's because Uproot 3 makes Python classes that have the same inheritance as the underlying C++ classes, TProfile2D inherits from TH2D, and the Let's try to fix this in Uproot 4, because Uproot 3 is quickly approaching deprecation-time. In Uproot 4, the Python classes have a flat hierarchy and so we more fully control which class gets which method. The Uproot 4 TProfile2D has an implementation for But TProfile (1-dimensional) has a carefully worked out implementation for with extensive tests that were carefully checked against ROOT's output: Probably all that needs to be done is to replace expressions like Would you like to try that? |
do you mean in uproot4? I can have a look, slowly... |
I know what you mean. I just gave it a look and refactored the TProfile (1-dimensional) code into helper functions that the TProfile2D uses. I haven't tested the TProfile2D, but if anything, it's probably just a typo or two away from working. If you get a chance, try the master branch with your file. |
I am reading a tprofile2d with uproot with the numpy method
The edges are read correctly, but what I got as values seems to be the number of entries for each bin, while for a TProfile I am interested to the average of the quantity I am profiling
The text was updated successfully, but these errors were encountered: