i3_filters

Filter classes for filtering I3-frames when converting I3-files.

class graphnet.data.extractors.icecube.utilities.i3_filters.I3Filter(name, class_name, level, log_folder, **kwargs)[source]

Bases: Logger

A generic filter for I3-frames.

Construct Logger.

Parameters:
  • name (str | None)

  • class_name (str | None)

  • level (int)

  • log_folder (str | None)

  • kwargs (Any)

class graphnet.data.extractors.icecube.utilities.i3_filters.NullSplitI3Filter(name, class_name, level, log_folder, **kwargs)[source]

Bases: I3Filter

A filter that skips all null-split frames.

Construct Logger.

Parameters:
  • name (str | None)

  • class_name (str | None)

  • level (int)

  • log_folder (str | None)

  • kwargs (Any)

class graphnet.data.extractors.icecube.utilities.i3_filters.SubEventStreamI3Filter(selection)[source]

Bases: I3Filter

A filter that only keeps frames from select splits.

Initialize SubEventStreamI3Filter.

Parameters:

selection (List[str]) – List of subevent streams to keep.

class graphnet.data.extractors.icecube.utilities.i3_filters.I3FilterMask(filter_names, filter_any)[source]

Bases: I3Filter

Checks list of filters from the FilterMask in I3 frames.

Initialize I3FilterMask.

Args: filter_names: List[str]

A list of filter names to check for.

filter_any: bool

standard: True If True, the frame is kept if any of the filter names are present. If False, the frame is kept if all of the filter names are present.

Parameters:
  • filter_names (List[str])

  • filter_any (bool)