from_parsed

method of dascore.io.sintela.protobuf_utils.TimeseriesMetadata source

from_parsed(
    parsed: list[tuple[str, Any]] ,
    meta: ParsedMeta ,
    total_samples: int | None[int, None] = None,
)

Validate timeseries headers and build shared attrs/coords.

total_samples lets a caller holding only the file’s first and last packets supply the length it derived from their sample counts. Without it parsed is taken to be every packet in the file and their contiguity is checked here.