dacapo.store.local_array_store

Module Contents

Classes

LocalArrayStore

A local array store that uses zarr containers.

Attributes

logger

dacapo.store.local_array_store.logger
class dacapo.store.local_array_store.LocalArrayStore(basedir)

A local array store that uses zarr containers.

best_validation_array(run_name: str, criterion: str, index: str | None = None) dacapo.store.array_store.LocalArrayIdentifier
validation_prediction_array(run_name: str, iteration: int, dataset: str) dacapo.store.array_store.LocalArrayIdentifier

Get the array identifier for a particular validation prediction.

validation_output_array(run_name: str, iteration: int, parameters: str, dataset: str) dacapo.store.array_store.LocalArrayIdentifier

Get the array identifier for a particular validation output.

validation_input_arrays(run_name: str, index: str | None = None) Tuple[dacapo.store.array_store.LocalArrayIdentifier, dacapo.store.array_store.LocalArrayIdentifier]

Get an array identifiers for the validation input raw/gt.

It would be nice to store raw/gt with the validation predictions/outputs. If we don’t store these we would have to look up the datasplit config and figure out where to find the inputs for each run. If we write the data then we don’t need to search for it. This convenience comes at the cost of some extra memory usage.

snapshot_container(run_name: str) dacapo.store.array_store.LocalContainerIdentifier

Get a container identifier for storage of a snapshot.

validation_container(run_name: str) dacapo.store.array_store.LocalContainerIdentifier

Get a container identifier for storage of a snapshot.

remove(array_identifier: dacapo.store.array_store.LocalArrayIdentifier) None

Remove an array by its identifier.