hpcflow.sdk.persistence.store_resource.ZarrAttrsStoreResource#

class hpcflow.sdk.persistence.store_resource.ZarrAttrsStoreResource(app, name, open_call)#

Bases: StoreResource

For caching reads and writes to Zarr attributes on groups and arrays.

Parameters:
  • app (App) – The main application context.

  • name (str) – The store name.

  • open_call (Callable) – How to actually perform an open on the underlying resource.

Methods

close

Close the store for a particular action.

open

Open the store.

Attributes

logger

The logger.

close(action)#

Close the store for a particular action.

Parameters:

action (str) – What we are closing the store for. Should match a previous call to close().

property logger#

The logger.

open(action)#

Open the store.

Parameters:

action (str) – What we are opening the store for; typically either read or update.