vak.config.parse.parse_config_section#

vak.config.parse.parse_config_section(config_toml, section_name, toml_path=None)[source]#

parse section of config.toml file

Parameters:
  • config_toml (dict) – containing config.toml file already loaded by parse function

  • section_name (str) – name of section from configuration file that should be parsed

  • toml_path (str) – path to a configuration file in TOML format. Default is None. Used for error messages if specified.

Returns:

config – instance of class that represents section of config.toml file, e.g. PredictConfig for β€˜PREDICT’ section

Return type:

vak.config section class