class ctapipe.utils.EventTypeFilter(**kwargs: Any)[source]

Bases: ctapipe.core.component.Component

Check that an event has one of the allowed types

Attributes Summary


The allowed types.

Methods Summary


Returns True if the event should be kept

Attributes Documentation


The allowed types. Set to None to allow all types.Possible values: FLATFIELD or 0, SINGLE_PE or 1, SKY_PEDESTAL or 2, DARK_PEDESTAL or 3, ELECTRONIC_PEDESTAL or 4, OTHER_CALIBRATION or 15, MUON or 16, HARDWARE_STEREO or 17, DAQ or 24, SUBARRAY or 32, UNKNOWN or 255.

Methods Documentation


Returns True if the event should be kept