Commit 2624f035 authored by Moritz Huetten's avatar Moritz Huetten

Merge branch 'dev-mhuetten-unify-datamc' into 'master'

Dev mhuetten unify datamc

See merge request !2
parents 0e97a041 aee62552
Pipeline #65840 failed with stage
......@@ -30,3 +30,22 @@ with MAGICEventSource(input_url=file_name) as source:
...some processing...
```
The reader also works with multiple files parsed as wildcards, e.g.,
```python
MAGICEventSource(input_url='data_dir/*.root')
```
This is necessary to load and match stereo events, which are automatically created if data files from M1 and M2 for the same run are loaded.
The reader is able to handle data or Monte Carlo files, which are automatically recognized. Note that the file names have to follow the convention:
- `*_M[1-2]_RUNNUMBER.SUBRUNNR_Y_*.root` for data
- `*_M[1-2]_za??to??_?_RUNNUMBER_Y_*.root` for Monte Carlos.
Note that currently, when loading multiple runs at once, the event ID is not unique.
#### Changelog
- v0.1: Initial version
- v0.2.0: Unification of data and MC reading
This diff is collapsed.
......@@ -10,7 +10,7 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
setup(
name='ctapipe_io_magic',
packages=find_packages(),
version='0.1',
version='0.2.0',
description='ctapipe plugin for reading of the calibrated MAGIC files',
long_description=long_description,
long_description_content_type='text/markdown',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment