tiled.adapters.array.ArrayAdapter

class tiled.adapters.array.ArrayAdapter(data, *, metadata=None, dims=None)[source]

Wrap an array-like object in an interface that Tiled can serve.

Examples

Wrap a dask array.

>>> ArrayAdapter(dask.array.from_array(numpy.random.random((100, 100)), chunks=(100, 50)))

Wrap a numpy array. Internally, it will be automatically divided into chunks by dask.

>>> ArrayAdapter.from_array(numpy.random.random((100, 100)))
__init__(data, *, metadata=None, dims=None)[source]

Methods

__init__(data, *[, metadata, dims])

from_array(data, *[, metadata, dims])

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