hpcflow.sdk.persistence.utils#

Miscellaneous persistence-related helpers.

Module attributes

ARRAY_OUTPUT_MASK_SUFFIX

Suffix of the NPZ archive holding the mask of a masked-array output.

ARRAY_OUTPUT_CONSOLIDATED_NAME

File name of a consolidated (single-file) array-output archive.

Functions

ask_pw_on_auth_exc

Run the given function on the given arguments and add a password if the function fails with an SSHException.

atomic_write

Defensively write the provided bytes to the specified path.

infer_store

Identify the store type using the path and file system parsed by fsspec.