Drop-in spikeglx.Reader for HDF5-packed LFP-compressed files.
Chunks are decompressed on demand. No sync trace is available; read() with sync=True returns None as the second element. Data is returned in volts (float32) in the same (n_samples, n_channels) convention as spikeglx.Reader.
The HDF5 layout is ///meta and ///chunks/. A file may contain multiple recordings and/or multiple scale levels. When a file contains exactly one recording the key is auto-detected; otherwise pass recording=.
Parameters
Name
Type
Description
Default
h5_file
path - like
HDF5 archive produced by compress_to_h5.
required
recording
str or None
Recording key (top-level group name). Auto-detected when the file contains exactly one recording; raises ValueError for multi-recording files.
None
scale
int
Resolution level to open. 0 = base (full LFP rate). Default 0.
0
bin_channels
int
Number of adjacent channels to sum together on every read. 1 (default) means no binning. When set, nc, shape, and geometry all reflect the binned dimension, and slicing (sr[0:2500, :]) returns (n_samples, nc // bin_channels) without any extra arguments.