This module implements the ctapipe class, needed to read the calibrated data of the MAGIC telescope system. It requires the ctapipe and uproot packages to run.
Provided ctapipe is already installed, the installation can be done like so:
git clone https://github.com/IevgenVovk/ctapipe_io_magic.git
cd ctapipe_io_magic
python setup.py install --user
import ctapipe
from ctapipe_io_magic import MAGICEventSource
with MAGICEventSource(input_url=file_name) as source:
for event in source:
...some processing...