diff --git a/pyxsim/instruments.py b/pyxsim/instruments.py index 3c15ef57..129253e2 100644 --- a/pyxsim/instruments.py +++ b/pyxsim/instruments.py @@ -173,7 +173,7 @@ def convolve_energies(self, events, prng): events.events[key] = events[key][eidxs] events.events["eobs"] = YTArray(sorted_e, "keV") - events.events[rmf.header["CHANTYPE"]] = np.array(detectedChannels, dtype="int") + events.events[rmf.header["CHANTYPE"]] = np.concatenate(detectedChannels).astype("int") events.parameters["RMF"] = rmf.filename events.parameters["ChannelType"] = rmf.header["CHANTYPE"]