Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #77 from jrueb/master
Browse files Browse the repository at this point in the history
Make TH3 writeable
  • Loading branch information
jpivarski authored Dec 17, 2019
2 parents 9569e0d + 8b38c49 commit 7ddba58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uproot_methods/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def types(cls, obj):
elif any(x == ("uproot_methods.classes.TH2", "Methods") or x == ("TH2", "Methods") for x in types(obj.__class__, obj)):
return (None, None, "uproot.write.objects.TH", "TH")

elif any(x == ("uproot_methods.classes.TH3", "Methods") or x == ("TH3", "Methods") for x in types(obj.__class__, obj)):
return (None, None, "uproot.write.objects.TH", "TH")

else:
raise TypeError("type {0} from module {1} is not writeable by uproot".format(obj.__class__.__name__, obj.__class__.__module__))

Expand Down

0 comments on commit 7ddba58

Please sign in to comment.