xarray_schema.ShapeSchema

class xarray_schema.ShapeSchema(shape)

Shape schema

Parameters:

shape (iterable of ints) – Shape definition, None may be used as a wildcard.

Raises:

SchemaError

__init__(shape)

Methods

__init__(shape)

from_json(obj)

to_json(**dumps_kws)

Generate a JSON string representation of this schema

validate(shape)

Validate shape

Attributes

json