cubed.Array#
- class cubed.Array(name, zarray, spec, plan)#
Chunked array backed by Zarr storage that conforms to the Python Array API standard.
- __init__(name, zarray, spec, plan)#
Methods
__init__(name, zarray, spec, plan)compute(*[, executor, callbacks, ...])Compute this array, and any arrays that it depends on.
plan(*[, optimize_graph, optimize_function, ...])rechunk(chunks, *[, min_mem, use_new_impl])Change the chunking of this array without changing its shape or data.
to_svg([size])Convert chunks from Cubed Array into an SVG Image
visualize([filename, format, ...])Produce a visualization of the computation graph for this array.
Attributes
TblocksAn array-like interface to the blocks of an array.
chunkmemAmount of memory in bytes that a single chunk uses.
chunksA tuple containing a sequence of block sizes for each corresponding array dimension.
chunksizeA tuple indicating the chunk size of each corresponding array dimension.
devicedtypeData type of the array elements.
itemsizeLength of one array element in bytes
mTnbytesNumber of bytes in array
ndimNumber of array dimensions (axes).
npartitionsNumber of chunks in the array.
numblocksA tuple indicating the number of blocks (chunks) in each corresponding array dimension.
shapeArray dimensions.
sizeNumber of elements in the array.