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 #46 from reikdas/master
Browse files Browse the repository at this point in the history
Add support for writing histograms read by uproot to ROOT files
  • Loading branch information
jpivarski authored Mar 30, 2019
2 parents 219b064 + bcd957a commit 370b9e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion uproot_methods/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def types(cls, obj):
elif any(x == ("physt.histogram1d", "Histogram1D") for x in types(obj.__class__, obj)):
return ("uproot_methods.classes.TH1", "from_physt", "uproot.write.objects.TH1", "TH1")

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

else:
Expand Down
2 changes: 1 addition & 1 deletion uproot_methods/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import re

__version__ = "0.4.5"
__version__ = "0.4.6"
version = __version__
version_info = tuple(re.split(r"[-\.]", __version__))

Expand Down

0 comments on commit 370b9e6

Please sign in to comment.