Skip to content

Crashes when reading file multiple times #174

@ggmarshall

Description

@ggmarshall

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglh5HDF5 I/O

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions