GainSelector#
- class ctapipe.calib.camera.gainselection.GainSelector(**kwargs: Any)[source]#
 Bases:
ComponentBase class for algorithms that decide on the gain channel to use
Methods Summary
__call__(waveforms)Reduce the waveform to a single gain channel
select_channel(waveforms)Abstract method to be defined by a GainSelector subclass.
Methods Documentation
- __call__(waveforms)[source]#
 Reduce the waveform to a single gain channel
- Parameters:
 - waveformsndarray
 Waveforms stored in a numpy array of shape (n_chan, n_pix, n_samples).
- Returns:
 - selected_gain_channelndarray
 Gain channel to use for each pixel Shape: n_pix Dtype: int8
- abstract select_channel(waveforms)[source]#
 Abstract method to be defined by a GainSelector subclass.
Call the relevant functions to decide on the gain channel used for each pixel.
- Parameters:
 - waveformsndarray
 Waveforms stored in a numpy array of shape (n_chan, n_pix, n_samples).
- Returns:
 - selected_gain_channelndarray
 Gain channel to use for each pixel Shape: n_pix Dtype: int8