PatchMeta

class of dascore.workflow.meta source

PatchMeta(
    coords: ‘CoordManager’ ,
    attrs: ‘PatchAttrs’ ,
    dtype: ‘Any’ ,
    backend: ‘str’ = numpy,
    patch_type: ‘Any’ = None,
)-> None

Everything a patch carries except its data.

Parameters

Parameter Description
coords The coordinates, which carry the dimensions and the shape too.
attrs The patch’s attributes.
dtype What the data are. Held separately because a kernel may promote –
normalize divides, so integers come back as floats – and the
metadata cannot always say in advance what it will be.
backend Which array library the data belong to, as
backend_name spells
it. This is how a kernel is chosen without looking at an array.

Methods

Name Description
get_axis Return the axis a dimension name refers to.
to_patch Return the patch this metadata and some data make.
update Return metadata with some of it changed.