Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Latest commit

 

History

History
156 lines (95 loc) · 2.71 KB

config.md

File metadata and controls

156 lines (95 loc) · 2.71 KB

config

Contents

write_default_config [#19]

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 object

Path of the config file (optional).

template : dict

Template of the config file to be written (optional).

read_config [#40]

Check the source code online

def read_config(path=CONFIG_PATH):

 
docstring:

Read BrainGlobe config.

Parameters

----------

path : Path object

Path of the config file (optional).

Returns

-------

ConfigParser object

brainglobe configuration

write_config_value [#64]

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, ignore

sections and look directly for matching parameters names.

Parameters

----------

key : str

Name of the parameter to configure.

val :

New value.

path : Path object

Path of the config file (optional).

get_brainglobe_dir [#88]

Check the source code online

def get_brainglobe_dir():

 
docstring:

Return brainglobe default directory.

Returns

-------

Path object

default BrainGlobe directory with atlases

cli_modify_config [#100]

Check the source code online

def cli_modify_config(key=0, value=0, show=False):

 
docstring:

no docstring

_print_config [#117]

Check the source code online

def _print_config():

 
docstring:

Print configuration.