Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions magicctapipe/scripts/lst1_magic/lst1_magic_event_coincidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import logging
import sys
import time
import re
from decimal import Decimal
from pathlib import Path

Expand Down Expand Up @@ -445,6 +446,16 @@ def main():

args = parser.parse_args()

file_regex = re.search(r"Run(\d{5}).h5", args.input_file_lst)

if file_regex is not None:
logger.error(
"\nRunning event coincidence on a merged LST-1 DL1 file. "
"Please run the script on LST-1 DL1 subrun files, otherwise you may "
"run into memory issues. Exiting."
)
sys.exit(1)

with open(args.config_file, "rb") as f:
config = yaml.safe_load(f)

Expand Down