Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude lst1 dl1 merged #129

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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