latools/helpers/config.py
def read_configuration(config='DEFAULT'):
    """
    Read LAtools configuration file, and return parameters as dict.
    """
    # read configuration file
    _, conf = read_latoolscfg()
    # if 'DEFAULT', check which is the default configuration
    if config == 'DEFAULT':
        config = conf['DEFAULT']['config']

    # grab the chosen configuration
    conf = dict(conf[config])
    # update config name with chosen
    conf['config'] = config
    return conf
def read_configuration(config='DEFAULT'):
    # read configuration file
    _, conf = read_latoolscfg()
    # if 'DEFAULT', check which is the default configuration
    if config == 'DEFAULT':
        config = conf['DEFAULT']['config']

    # grab the chosen configuration
    conf = dict(conf[config])
    # update config name with chosen
    conf['config'] = config
    return conf
def read_configuration ( config = 'DEFAULT' ) : # read configuration file _ , conf = read_latoolscfg ( ) # if 'DEFAULT', check which is the default configuration if config == 'DEFAULT' : config = conf [ 'DEFAULT' ] [ 'config' ] # grab the chosen configuration conf = dict ( conf [ config ] ) # update config name with chosen conf [ 'config' ] = config return conf
Read LAtools configuration file, and return parameters as dict.
Read LAtools configuration file and return parameters as dict .