icecube / skywriter

Upstream Tools for SkyDriver & the Skymap Scanner
MIT License
0 stars 0 forks source link

`i3_to_json.py` issue with multiple subevents file #14

Closed mlincett closed 11 months ago

mlincett commented 11 months ago

It seems the current version of the convert script has troubles processing /data/ana/realtime/alert_catalog_v2/input_files/Level2pass2_IC86.2013_data_Run00124340_Subrun00000000_00000052_event19400842.i3.zst

The first event is written out, but the second event fails when retrieving the keys from the dictionary:

File "[...]/skywriter/i3_to_json.py", line 97, in fill_missing_keys
    pframe = source_pframes[uid]
KeyError: (124340, 19400842, 1)

To be debugged.

mlincett commented 11 months ago
/data/ana/realtime/alert_catalog_v2/input_files/Level2pass2_IC86.2013_data_Run00124693_Subrun00000000_00000088_event33063779.i3.zst

also fails with KeyError: (124693, 33063779, 0), so this is a different case where apparently there are not multiple subevents where the original Physics I3Frame contains subevent 1 instead of 0.

Note for bookkeeping: this is event ICECAT-79. Similar problem with ICECAT-99.

mlincett commented 11 months ago

The first issue occurs when multiple subevents are created by the trigger splitter. We need to skip additional subevents. Fixing this in #15