Skip to content

numpy

NumpyArrayStore(path, mode='r', disk_format=DiskFormat.NPZ, **kwargs)

Bases: ArrayStore

In-memory array store using NumPy arrays in a flat dict keyed by hierarchical paths.

Paths use '/' to denote nested logical structure but are stored as flat keys.

append(path, data, *args, **kwargs)

available()

create(path, shape, overwrite=False, dtype=np.dtype(np.float64), fill=None, **kwargs)

flush(**kwargs)

get(path, **kwargs)

iter(path, elements=None, view=None, chunk_size=1, **kwargs)

Yield chunks of data instead of reading all into memory.

PARAMETER DESCRIPTION

path

TYPE: Path | str

view

View for all but the first dimension.

TYPE: OptionalSliceSpec DEFAULT: None

chunk

Number of data points of the first axis to yield.

read(path, view=None, **kwargs)

write(path, data, view=None, **kwargs)