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 readNoneNone
-
check_settings
()¶ Check if parameters make sense.
NoneNoneException if settings have inconsistencies.
-
load_config
(keys=None, values=None, nran=None, *args, **kwargs)¶ Load parameters from config file.
NoneNonelist of parameters as a named tuple
-
load_filenames
()¶ Make filenames based on info in config file.
NoneNonelist of filenames
-
read_config_file
()¶ Parse paramenters for the simulation from a .ini file.
NoneNoneNone
-
-
Parser.
choice_yn
(string, default_choice=None)¶
-
Parser.
is_iterable
(obj)¶
-
Parser.
is_number
(string)¶