-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Last week Axel reported that he had some jobs for the event coincidence failing with a memory issue (too much memory requested). We found out the problem happened because the event coincidence was run over LST-1 merged DL1 files. In such a case, the number of events is too large when performing the coincidence, and it causes the script to exit with an error similar to:
Checking the event coincidence...
Traceback (most recent call last):
File "/fefs/aswg/workspace/alessio.berti/miniconda3/envs/magic-lst1/bin/lst1_magic_event_coincidence", line 8, in <module>
sys.exit(main())
File "/fefs/aswg/workspace/alessio.berti/miniconda3/envs/magic-lst1/lib/python3.8/site-packages/magicctapipe/scripts/lst1_magic/lst1_magic_event_coincidence.py", line 452, in main
event_coincidence(
File "/fefs/aswg/workspace/alessio.berti/miniconda3/envs/magic-lst1/lib/python3.8/site-packages/magicctapipe/scripts/lst1_magic/lst1_magic_event_coincidence.py", line 226, in event_coincidence
cond_lolim = timestamps_magic.value >= times_lolim[:, np.newaxis].value
numpy.core._exceptions.MemoryError: Unable to allocate 586. GiB for an array with shape (4724405, 133284) and data type boolTherefore, it would be ideal to check the input file and exit if it is a merged DL1 file.
Metadata
Metadata
Assignees
Labels
No labels