ctapipe is not stable yet, so expect large and rapid changes to structure and functionality as we explore various design choices before the 1.0 release.

GainSelector#

class ctapipe.calib.GainSelector(**kwargs: Any)[source]#

Bases: Component

Base 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