tracksdata.array
Array representation of graphical data.
Provides read-only array views of graph attributes, with lazy loading from original data sources.
Classes:
-
GraphArrayView
–Class used to view the content of a graph as an array.
GraphArrayView
Bases: BaseReadOnlyArray
Class used to view the content of a graph as an array.
The resulting graph behaves as a read-only numpy array, displaying arbitrary attributes inside their respective instance mask.
The content is lazy loaded from the original data source as it's done with a zarr.Array
Parameters:
-
graph
BaseGraph
) –The graph to view as an array.
-
shape
tuple[int, ...]
) –The shape of the array.
-
attr_key
str
) –The attribute key to view as an array.
-
offset
int | ndarray
, default:0
) –The offset to apply to the array.
Methods:
-
__len__
–Returns the length of the first dimension of the array.
Attributes: