scikit-hep / uproot3-methods

Pythonic behaviors for non-I/O related ROOT classes.
BSD 3-Clause "New" or "Revised" License
21 stars 28 forks source link

Bug in TH1.py, line 146, in show method #73

Open mostafa1993 opened 4 years ago

mostafa1993 commented 4 years ago

If you have <class 'uproot.rootio.TH2D'> type object, when you try to use the 'show' method, there will be error. The error is comming from: TH1.py file line 146: intervals = ["[{0:<.5g}, {1:<.5g})".format(l, h) for l, h in [self.interval(i) for i in range(len(self))]]

jpivarski commented 4 years ago

uproot-methods is user-contributed. Since you've found the offending line, could you submit a PR?