hypernets_processor.context module
Context class
- class hypernets_processor.context.Context(processor_config=None, job_config=None, logger=None)
Bases:
object
Class to determine and store processor state :type processor_config: configparser.RawConfigParser :param processor_config: processor config data object :type job_config: configparser.RawConfigParser :param job_config: job config data object
- get_config_names()
Get available config value names :return: config value names :rtype: list
- get_config_value(name)
Get config value :type name: str :param name: config data name :return: config value
- set_config_value(name, value)
Sets config data to values instance attribute :type name: str :param name: config data name :param value: config data value
- set_defaults()
Set defaults config values (to be overwritten by values in configuration files)
- unpack_config(config, protected_values=None)
Unpacks config data, sets relevant entries to values instance attribute :type config: configparser.RawConfigParser :param config: config data