matrix.py
def read_config(config_file, conf_section='Matrix'):
    """Reads a matrix config file.

    :param config_file: path to the config file
    :type config_file: str
    :param conf_section: section of the config file to read
    :type conf_section: str
    :return: config dictionary
    """
    config_file = os.path.expanduser(config_file)
    if os.path.isfile(config_file) is False:
        raise FileNotFoundError('config file "{0}" not found'.format(
            config_file))

    config = configparser.ConfigParser()
    config.optionxform = str
    config.read(config_file)
    return {key: value for key, value in config[conf_section].items()}
Reads a matrix config file.

    :param config_file: path to the config file
    :type config_file: str
    :param conf_section: section of the config file to read
    :type conf_section: str
    :return: config dictionary
    
Reads a matrix config file.
Reads a matrix config file .
def read_config(config_file, conf_section='Matrix'):
    config_file = os.path.expanduser(config_file)
    if os.path.isfile(config_file) is False:
        raise FileNotFoundError('config file "{0}" not found'.format(
            config_file))
    config = configparser.ConfigParser()
    config.optionxform = str
    config.read(config_file)
    return {key: value for key, value in config[conf_section].items()}
def read_config ( config_file , conf_section = 'Matrix' ) : config_file = os . path . expanduser ( config_file ) if os . path . isfile ( config_file ) is False : raise FileNotFoundError ( 'config file "{0}" not found' . format ( config_file ) ) config = configparser . ConfigParser ( ) config . optionxform = str config . read ( config_file ) return { key : value for key , value in config [ conf_section ] . items ( ) }
Reads a matrix config file.
Reads a matrix config file .
"""Reads a matrix config file.

    :param config_file: path to the config file
    :type config_file: str
    :param conf_section: section of the config file to read
    :type conf_section: str
    :return: config dictionary
    """
None
config_file
path to the config file
path to the config file
conf_section
section of the config file to read
section of the config file to read