Skip to content

Commit

Permalink
Add dummy lone hits for he channel
Browse files Browse the repository at this point in the history
  • Loading branch information
WenzDaniel committed Aug 6, 2021
1 parent 06d668a commit 4710419
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion straxen/plugins/peaklet_processing.py
Expand Up @@ -721,7 +721,10 @@ def infer_dtype(self):
return strax.unpack_dtype(self.deps['peaklets_he'].dtype_for('peaklets_he'))

def compute(self, peaklets_he):
return super().compute(peaklets_he)
# There are not any lone hits for the high energy channel,
# so create a dummy for the compute method.
lone_hits = np.zeros(0, dtype=strax.hit_dtype)
return super().compute(peaklets_he, lone_hits)


@export
Expand Down

0 comments on commit 4710419

Please sign in to comment.