conf_from_file#

brainglobe_atlasapi.utils.conf_from_file(file_path: Path) ConfigParser[source]#

Read a configuration file from a local file path.

Parameters:

file_path (Path) – The path to the configuration file (e.g., obtained from config.get_brainglobe_dir()).

Returns:

A ConfigParser object containing the configuration data.

Return type:

configparser.ConfigParser

Raises:

FileNotFoundError – If the specified file_path does not exist.