tiled.adapters.array.ArrayAdapter¶
- class tiled.adapters.array.ArrayAdapter(array, *, chunks=None, metadata=None, dims=None, specs=None, references=None)[source]¶
Wrap an array-like object in an interface that Tiled can serve.
Examples
Wrap any array-like.
>>> ArrayAdapter(numpy.random.random((100, 100)))
>>> ArrayAdapter(dask.array.from_array(numpy.random.random((100, 100)), chunks=(100, 50)))
Methods
__init__
(array, *[, chunks, metadata, dims, ...])from_array
(array, *[, chunks, metadata, ...])macrostructure
()Structures of the layout of blocks of this array
microstructure
()Internal structure of a block of this array --- i.e. its data type.
read
([slice])read_block
(block[, slice])Attributes
metadata
structure_family