PatchMeta
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 themetadata cannot always say in advance what it will be. |
| backend |
Which array library the data belong to, asbackend_name spellsit. 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. |