This file contains several functions required for loading the settings of BrainMapper.
Usage:
To use the modules, import the packages and instantiate any module/block class as you wish:
from settings import Settings
"""
importast
importconfigparser
fromcollections.abcimportMapping
classSettings(Mapping):
"""
Settings Loader Class
This class reads a settings file, and loads the data as dictionaries.
It makes use of configparser, which implements a basic configuration language which provides a structure similar to what’s found in Microsoft Windows INI files.
Args:
settings_file (str): Settings file name
Returns:
item: Different str, int and float values corresponding to the various settings dictionary keys
int: Lenght of the various dictionaries
list: A list of a given settings dictionary's (key, value) tuple pairs.