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

Issue 187 #188

Merged
merged 3 commits into from
Nov 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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