hpcflow.sdk.persistence.array_outputs.ChunkedArray#

class hpcflow.sdk.persistence.array_outputs.ChunkedArray(fs, path, dtype, chunks, chunk_idx, row_idx)#

Bases: object

Lazy array entries backed by a seekable archive; cache only the last chunk.

Methods

reading

Share one ZIP handle for a request; close it before replacing the file.

verify

Read each chunk once to validate its dtype, shape, and ZIP CRC.

Attributes

ndim

shape

Uniform archives have an implied shape, matching legacy dense arrays.

fs

path

dtype

chunks

chunk_idx

row_idx

Parameters:
chunk_idx: np.ndarray#
chunks: tuple[tuple[str, tuple[int, ...]], ...]#
dtype: np.dtype#
fs: AbstractFileSystem#
property ndim: int#
path: str#
reading()#

Share one ZIP handle for a request; close it before replacing the file.

Return type:

Iterator[ChunkedArray]

row_idx: np.ndarray#
property shape: tuple[int, ...]#

Uniform archives have an implied shape, matching legacy dense arrays.

verify()#

Read each chunk once to validate its dtype, shape, and ZIP CRC.

Return type:

None