get_metadata
get_metadata(
self ,
resource: BinaryReader ,
snap: bool | str | collections.abc.Collection[bool, str, collections.abc.Collection[str]] = (),
)-> ‘list[dc.PatchMeta]’
Scan a file, return summary information on the contents.
A file with dropped or repeated packets gives one patch per run of contiguous packets, keyed by the run’s first packet. Time follows the sample counts from the run’s first packet start time. A scan warns when a run’s end packet clock is more than half a packet off that grid; reading the data checks every packet.