Closed jrueb closed 4 years ago
Hey :)
No, there is no specific reason that the lines aern't there - we just forgot to add it in when adding support for writing TH3. Thanks for catching the mistake.
Feel free to create a PR which adds those lines.
@reikdas, TH3 was included in your implementation, right? I think uproot-methods just needs to be updated to be aware of the capabilities of uproot.
@jpivarski Yes. Without the missing uproot-methods code, uproot can just write TH3s that are already available (aka TH3s read by uproot).
When I try write a TH3 to a file, I get
TypeError: type TH3 from module __main__ is not writeable by uproot
I took a look at convert.py from uproot_methods and it seems there are lines for TH1 and TH2 but not for TH3. I added the two lines
and it worked. And reason why these lines aren't in there? Could they be added?