SpotListSource

class ctapointing.io.SpotListSource(**kwargs: Any)

Bases: Component

Class to read SpotList objects from HDF5 input file.

Attributes Summary

input_url

Path to the input file containing spotlists.

is_stream

max_events

Maximum number of events that will be read from the file

Methods Summary

close()

from_url(input_url, **kwargs)

is_compatible(file_path)

Attributes Documentation

input_url

Path to the input file containing spotlists.

is_stream
max_events

Maximum number of events that will be read from the file

Methods Documentation

close()
classmethod from_url(input_url, **kwargs)
static is_compatible(file_path)
__init__(input_url=None, config=None, parent=None, **kwargs)

Class to read SpotList objects from HDF5 input file. For now a very much simplified version of the ctapipe.io.HDF5EventSource class.

Parameters:
  • input_url (str) – Path of the file to load

  • config (traitlets.loader.Config) – Configuration specified by config file or cmdline arguments. Used to set traitlet values. Set to None if no configuration to pass.

  • parent – Parent from which the config is used. Mutually exclusive with config

  • kwargs

input_url

Path to the input file containing spotlists.

max_events

Maximum number of events that will be read from the file