Core
stores.arrays.core.ArrayStore(path, disk_format=DiskFormat.NONE, **kwargs)
¶
Bases: Store
, ABC
Abstract interface for storing and retrieving per-ensemble and per-microstate arrays, e.g., coordinates, velocities, forces, etc.
PARAMETER | DESCRIPTION |
---|---|
path
|
Container/table name. |
disk_format
|
File format when writing arrays to disk.
TYPE:
|
kind = StoreKind.ARRAY
class-attribute
instance-attribute
¶
append(path, data, **kwargs)
abstractmethod
¶
available()
abstractmethod
¶
create(path, shape, overwrite=False, **kwargs)
abstractmethod
¶
read(path, view=None, **kwargs)
abstractmethod
¶
Retrieve the full array stored at the given path.
PARAMETER | DESCRIPTION |
---|---|
path
|
Container/table name. |
view
|
either a tuple of slice objects corresponding to each dimension, or a dict of {axis_index: slice} for partial reads. If None, returns the full array.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
NDArray[generic] | None
|
numpy array previously stored. |