hpcflow.sdk.persistence.array_outputs.ChunkedArray#
- class hpcflow.sdk.persistence.array_outputs.ChunkedArray(fs, path, dtype, chunks, chunk_idx, row_idx)#
Bases:
objectLazy array entries backed by a seekable archive; cache only the last chunk.
Methods
Share one ZIP handle for a request; close it before replacing the file.
Read each chunk once to validate its dtype, shape, and ZIP CRC.
Attributes
Uniform archives have an implied shape, matching legacy dense arrays.
- Parameters:
- chunk_idx: np.ndarray#
- dtype: np.dtype#
- reading()#
Share one ZIP handle for a request; close it before replacing the file.
- Return type:
- 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