PatchSummary

class of dascore.core.summary
inherits from: DascoreBaseModel, pydantic.main.BaseModel
source

PatchSummary(
    attrs: PatchAttrs = ,
    coords: dict[str, CoordSummary] = ,
    dims: tuple[str, …] = (),
    shape: tuple[int, …] = (),
    dtype: str = ““,
    source_path: str | pathlib._local.Path | upath.core.UPath[str, Path, UPath] =”“,
    source_format: str =”“,
    source_version: str =”“,
    source_patch_id: str =”“,
)-> None

A metadata-only summary of a patch.

Methods

Name Description
dump_structured Return the structured representation of the summary.
flat_dump Return a flat dict suitable for indexing/dataframes.
get_coord_summary Return the summary object for a single coordinate.
from_patch Create a summary from a loaded patch.
new Create new instance with some attributed updated.