tiled.adapters.sparse.COOAdapter

class tiled.adapters.sparse.COOAdapter(blocks, shape, chunks, *, dims=None, metadata=None, specs=None)[source]

Wrap sparse Coordinate List (COO) arrays.

__init__(blocks, shape, chunks, *, dims=None, metadata=None, specs=None)[source]

Construct from blocks with coords given in block-local reference frame.

Methods

__init__(blocks, shape, chunks, *[, dims, ...])

Construct from blocks with coords given in block-local reference frame.

from_arrays(coords, data, shape[, dims, ...])

Simplest constructor.

from_coo(coo, *[, dims, metadata, specs])

Construct from sparse.COO object.

from_global_ref(blocks, shape, chunks, *[, ...])

Construct from blocks with coords given in global reference frame.

read([slice])

read_block(block[, slice])

structure()

Attributes

structure_family