Parser module

class Parser.Parser(argv=None, *args, **kwargs)

Bases: configparser.ConfigParser

parser class.

Manipulation of configuration parameters. This method allows to read a configuration file or to set parameters for a Constrained Causally Conected Network (C3Net) model.

check_file(sys_args='')

Parse paramenters for the simulation from a .ini file.

filename (str): the file name of the map to be read
None
None
check_settings()

Check if parameters make sense.

None
None
Exception if settings have inconsistencies.
load_config(keys=None, values=None, nran=None, *args, **kwargs)

Load parameters from config file.

None
None
list of parameters as a named tuple
load_filenames()

Make filenames based on info in config file.

None
None
list of filenames
read_config_file()

Parse paramenters for the simulation from a .ini file.

None
None
None
Parser.choice_yn(string, default_choice=None)
Parser.is_iterable(obj)
Parser.is_number(string)