write_sync_attrs

write_sync_attrs(meta_group, sample_knots, time_knots)

Write ALF sync knots plus a derived affine summary to a meta HDF5 group.

Parameters

Name Type Description Default
meta_group h5py.Group The scale’s meta group (f'{recording}/{scale:02d}/meta'). required
sample_knots array_like Sample-index knots, in this scale’s own native sample-index units (rate-scaled per scale, matching the existing fs_sync convention). required
time_knots array_like Session-clock time knots [s], one per sample_knots entry. required

Returns

Name Type Description
t0_sync, fs_sync : float The least-squares affine derived from the knots and written alongside them, so .t0/.fs and any direct-attrs reader (e.g. qc_report.py) keep seeing a plain scalar summary.

Raises

Name Type Description
ValueError See _validate_knots.