laion_fmri.config

Configuration management for laion_fmri.

Functions

dataset_initialize(path)

Initialize the dataset by setting and persisting the data directory.

get_data_dir()

Read the persisted data directory.

laion_fmri.config.dataset_initialize(path)[source]

Initialize the dataset by setting and persisting the data directory.

Parameters:

path (str) – Path to the data directory. Must exist on disk.

Raises:
laion_fmri.config.get_data_dir()[source]

Read the persisted data directory.

Returns:

The configured data directory path.

Return type:

str

Raises:

DataDirNotSetError – If no data directory has been configured.