Fix broken `_total.h5` VDS pointers for ID19-ID68

#3

Fixes the broken _total.h5 virtual-dataset (VDS) pointers described in the
companion discussion (#2). For ID19-ID68 (50/68 participants), the _total.h5
virtual sources point at the wrong participant's _part_N.h5 files (all off
by 18 folders, e.g. ID19_total.h5 -> ID01_part_1.h5). Since those files
don't exist in the affected participant's folder, HDF5 silently fills the
unresolved virtual sources with zeros instead of raising, so reading through
the documented _total.h5 path currently yields an all-zero recording for
those 50 participants.

This PR replaces all 68 _total.h5 files with regenerated versions that
point at the correct _part_N.h5 files (read from each file's own
info/files, which already has the right names -- only the VDS pointers
were wrong). No signal bytes are touched; data/seizures, the channel/
sampling-rate attributes, and info/files/info/checksums are carried over
unchanged, and the dataset's total shape is unaffected.

Verified: after this change, reading data/ieeg through _total.h5 for
ID19-ID68 returns the same non-zero signal as reading the _part_N.h5
files directly, at both the start and middle of each recording (previously
the VDS returned zeros starting wherever the wrong source's shape ran out).

This PR does not address the separate duplicate-participant issue (18 of the
68 folders reproduce one of ID01-ID18 exactly) raised in the discussion.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment