dacapo.store.array_store
Module Contents
Classes
Base class for array stores. |
- class dacapo.store.array_store.LocalContainerIdentifier
- container: pathlib.Path
- array_identifier(dataset) LocalArrayIdentifier
- class dacapo.store.array_store.ArrayStore
Base class for array stores.
Creates identifiers for the caller to create and write arrays. Provides only rudimentary support for IO itself (currently only to remove arrays).
- abstract validation_prediction_array(run_name: str, iteration: int, dataset: str) LocalArrayIdentifier
Get the array identifier for a particular validation prediction.
- abstract validation_output_array(run_name: str, iteration: int, parameters: str, dataset: str) LocalArrayIdentifier
Get the array identifier for a particular validation output.
- abstract validation_input_arrays(run_name: str, index: str | None = None) Tuple[LocalArrayIdentifier, 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.
- abstract remove(array_identifier: LocalArrayIdentifier) None
Remove an array by its identifier.
- abstract snapshot_container(run_name: str) LocalContainerIdentifier
Get a container identifier for storage of a snapshot.
- abstract validation_container(run_name: str) LocalContainerIdentifier
Get a container identifier for storage of a snapshot.