Array wrap
DaskArrayWrapperConfig #
Bases: TypedDict
A model of the attributes of DaskArrayWrapper
.
ZarrArrayWrapper
dataclass
#
Bases: BaseArrayWrapper
An array wrapper that passes zarr.Array
instances through unchanged.
DaskArrayWrapper
dataclass
#
Bases: BaseArrayWrapper
An array wrapper that wraps a zarr.Array
in a dask array using dask.array.from_array
.
The attributes of this class are a subset of the keyword arguments to dask.array.from_array
;
specifically, those keyword arguments that make sense when the input to from_array
is a
zarr.Array
.
Attributes:
Name | Type | Description |
---|---|---|
chunks |
str | int | tuple[int, ...] tuple[tuple[int, ...], ...] = "auto"
|
The chunks for the Dask array. See |
meta |
Any = `None`
|
The array type of each chunk of the Dask array. See |
inline_array |
bool = True
|
Whether slices of this array should be inlined into the Dask task graph.
See |
naming |
'auto' | 'array_url'
|
The naming scheme for the Dask array. If "auto", the default, then Dask will name the array with a non-deterministic hash. If "array_url", then the array will be named according to its URL. |
wrap #
Wrap the input in a dask array.
Source code in src/xarray_ome_ngff/array_wrap.py
resolve_wrapper #
Convert an ArrayWrapperSpec
into the corresponding BaseArrayWrapper
subclass.
Source code in src/xarray_ome_ngff/array_wrap.py
parse_wrapper #
Parse the input into a BaseArrayWrapper
subclass.
If the input is already BaseArrayWrapper
, it is returned as-is.
Otherwise, the input is presumed to be ArrayWrapperSpec
and is passed to resolve_wrapper
.