from_patch

method of dascore.core.summary.PatchSummary source

from_patch(
    patch: PatchMeta ,
)-> ‘PatchSummary’

Create a summary from a patch, or from a patch’s metadata alone.

The lineage ids are carried, not dropped: the index stores them, so a summary which left them behind would be the one thing which made scanning a patch and reading it disagree about which data it is.