Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #188 from scikit-hep/issue-187
Browse files Browse the repository at this point in the history
Issue 187
  • Loading branch information
jpivarski authored Nov 30, 2018
2 parents f7cc73e + b8dfbcc commit 78de42f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
Binary file added tests/samples/issue187.root
Binary file not shown.
5 changes: 5 additions & 0 deletions tests/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,8 @@ def test_geant4(self):
# assert a1[0]._fArray.shape == (108400,)
# a2 = t["MRawEvtData.fHiGainPixId"].array(t["MRawEvtData.fHiGainPixId"].interpretation.speedbump(False))
# assert a2[0]._fArray.shape == (1084,)

def test_issue187(self):
t = uproot.open("tests/samples/issue187.root")["fTreeV0"]
assert (t.array("fMultiplicity") == -1).all()
assert t.array("V0s.fEtaPos")[-3].tolist() == [-0.390625, 0.046875]
4 changes: 4 additions & 0 deletions uproot/interp/numerical.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ def todtypeflat(self):
def todims(self):
return self._todims

@property
def itemsize(self):
return 4

def __repr__(self):
args = [repr(self.low), repr(self.high), repr(self.numbits)]

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

import re

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

Expand Down

0 comments on commit 78de42f

Please sign in to comment.