-
Notifications
You must be signed in to change notification settings - Fork 13
Crashes when reading file multiple times #174
Copy link
Copy link
Open
Labels
Description
I've found when rereading files I sometimes get crashes e.g.
import lgdo.lh5 as lh5
wfs = lh5.read(
"ch1112001/raw",
[
"/data2/public/prodenv/prod-blind/tmp-p14-raw/generated/tier/raw/pzc/p14/r006/l200-p14-r006-pzc-20250624T012729Z-tier_raw.lh5",
"/data2/public/prodenv/prod-blind/tmp-p14-raw/generated/tier/raw/pzc/p14/r006/l200-p14-r006-pzc-20250624T012754Z-tier_raw.lh5",
],
field_mask = ["daqenergy", "timestamp"]
)
wfs = lh5.read(
"ch1112001/raw",
[
"/data2/public/prodenv/prod-blind/tmp-p14-raw/generated/tier/raw/pzc/p14/r006/l200-p14-r006-pzc-20250624T012729Z-tier_raw.lh5",
"/data2/public/prodenv/prod-blind/tmp-p14-raw/generated/tier/raw/pzc/p14/r006/l200-p14-r006-pzc-20250624T012754Z-tier_raw.lh5",
],
idx = [1, 4, 6, 39, 40, 41]
)
Seems to be linked to the index read and to do with reading the compressed waveforms. Can be fixed by using sto.read instead of lh5.read
Reactions are currently unavailable