Check the source code
online
def write_default_config(path=CONFIG_PATH,template=TEMPLATE_CONF_DICT):
docstring:
Write configuration file at first repo usage. In this way,we don't need to keep a confusing template config file in the repo.Parameters----------path : Path objectPath of the config file (optional).template : dictTemplate of the config file to be written (optional).
Check the source code
online
def read_config(path=CONFIG_PATH):
docstring:
Read BrainGlobe config.Parameters----------path : Path objectPath of the config file (optional).Returns-------ConfigParser objectbrainglobe configuration
Check the source code
online
def write_config_value(key, val, path=CONFIG_PATH):
docstring:
Write a new value in the config file. To make things simple, ignoresections and look directly for matching parameters names.Parameters----------key : strName of the parameter to configure.val :New value.path : Path objectPath of the config file (optional).
Check the source code
online
def get_brainglobe_dir():
docstring:
Return brainglobe default directory.Returns-------Path objectdefault BrainGlobe directory with atlases
Check the source code
online
def cli_modify_config(key=0, value=0, show=False):
docstring:
no docstring
Check the source code
online
def _print_config():
docstring:
Print configuration.