i3genericextractor

I3Extractor class(es) for generic data extraction.

class graphnet.data.extractors.icecube.i3genericextractor.I3GenericExtractor(keys, exclude_keys, extractor_name)[source]

Bases: I3Extractor

Dynamically and generically extract information from frames.

This class parses all keys in the I3Frame objects it is called on, and tries to automatically cast all of the available information to pure-python classes. This is done recursively, for each object in the I3Frame, by looking for member variables that can be parsed; by looking for objects that have signatures similar to python lists or dicts; and by handling a handful of special cases: - Pulse series maps, - Per-pulse maps, - MC tree, and - Triggers.

Construct I3GenericExtractor.

Parameters:
  • keys (Union[List[str], str, None], default: None) – List of keys in I3Frame to be parsed. Defaults to all keys.

  • exclude_keys (Union[List[str], str, None], default: None) – List of keys in I3Frame to exclude while parsing.

  • extractor_name (str)

Raises:

ValueError – If both keys and exclude_keys are set.