diff options
author | Stan Seibert <stan@mtrr.org> | 2011-11-17 15:01:07 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2021-05-09 08:42:38 -0700 |
commit | cfa1fa40f4fea303d9e9f826e13770e7860d36bb (patch) | |
tree | 70fa6dfd422510d11f98a9a24e2db3707f5b46bd | |
parent | aba4d12ce93e950c7834f4317d4d3353d18b192a (diff) | |
download | chroma-cfa1fa40f4fea303d9e9f826e13770e7860d36bb.tar.gz chroma-cfa1fa40f4fea303d9e9f826e13770e7860d36bb.tar.bz2 chroma-cfa1fa40f4fea303d9e9f826e13770e7860d36bb.zip |
Cast channel ID array to uint32, as that is technically what the C++ code is expecting.
-rw-r--r-- | chroma/io/root.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chroma/io/root.py b/chroma/io/root.py index 935299b..ebae9d6 100644 --- a/chroma/io/root.py +++ b/chroma/io/root.py @@ -218,7 +218,7 @@ class RootWriter(object): if pyev.channels is not None: nhit = count_nonzero(pyev.channels.hit) if nhit > 0: - ROOT.fill_channels(self.ev, nhit, np.arange(len(pyev.channels.t))[pyev.channels.hit].astype(np.int32), pyev.channels.t, pyev.channels.q, pyev.channels.flags, len(pyev.channels.hit)) + ROOT.fill_channels(self.ev, nhit, np.arange(len(pyev.channels.t))[pyev.channels.hit].astype(np.uint32), pyev.channels.t, pyev.channels.q, pyev.channels.flags, len(pyev.channels.hit)) else: self.ev.nhit = 0 self.ev.channels.resize(0) |