neurocore.persistence.factory

Construct a RunStore from NeuroCoreConfig.

Functions

build_run_store(...)

Build a RunStore from config, or None when persistence is disabled.

Module Contents

neurocore.persistence.factory.build_run_store(config: neurocore.config.schema.NeuroCoreConfig) neurocore.persistence.base.RunStore | None[source]

Build a RunStore from config, or None when persistence is disabled.

Parameters:

config – Project configuration.

Returns:

A RunStore instance, or None if persistence.enabled is False.

Raises:

ConfigError – If the configured backend is unknown.