tiled.adapters.sparse.COOAdapter

class tiled.adapters.sparse.COOAdapter(blocks, structure, *, metadata=None, specs=None, access_policy=None)[source]

Wrap sparse Coordinate List (COO) arrays.

__init__(blocks, structure, *, metadata=None, specs=None, access_policy=None)[source]

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

Methods

__init__(blocks, structure, *[, metadata, ...])

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.

metadata()

read([slice])

read_block(block[, slice])

structure()

Attributes

structure_family