hypernets_processor.utils.config module

Module of helper functions for configfile operations

hypernets_processor.utils.config.get_config_value(config, section, key, dtype=None)

Return value from config file

Parameters:
  • config (configparser.RawConfig) – parsed config file

  • section (str) – section to retrieve data from

  • key (str) – key in section to retrieve data from

  • dtype (type) – type of data to return

Returns:

config value

Return type:

str/bool/int/float

hypernets_processor.utils.config.infer_dtype(val)

Return inferred dtype of val

Parameters:

val – value

Returns:

inferred data type

Return type:

type

hypernets_processor.utils.config.read_config_file(fname)

Returns information from configuration file

Parameters:

fname (str) – path of configuration file

Returns:

configuration information

Return type:

configparser.RawConfigParser

hypernets_processor.utils.config.read_jobs_list(fname)

Return job config paths from jobs list file

Parameters:

fname (str) – path of jobs list file

Returns:

job config paths

Return type:

list