Skip to content

Commit

Permalink
Fix return value of NullDataVolumeReducer
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed May 31, 2023
1 parent 0834ca5 commit 90cef1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctapipe/image/reducer.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ class NullDataVolumeReducer(DataVolumeReducer):
"""

def select_pixels(self, waveforms, tel_id=None, selected_gain_channel=None):
mask = waveforms != 0
return mask
n_pixels = self.subarray.tel[tel_id].camera.geometry.n_pixels
return np.ones(n_pixels, dtype=bool)


class TailCutsDataVolumeReducer(DataVolumeReducer):
Expand Down

0 comments on commit 90cef1f

Please sign in to comment.