From cfa1fa40f4fea303d9e9f826e13770e7860d36bb Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Thu, 17 Nov 2011 15:01:07 -0500 Subject: Cast channel ID array to uint32, as that is technically what the C++ code is expecting. --- chroma/io/root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit