h2integrate.finances.tools

h2integrate.finances.tools#

Functions

check_plant_config_and_profast_params(...)

Checks for consistency between values in the plant configuration dictionary and the ProFAST parameters dictionary.

h2integrate.finances.tools.check_plant_config_and_profast_params(plant_config_dict, pf_param_dict, plant_config_key, pf_config_key)#

Checks for consistency between values in the plant configuration dictionary and the ProFAST parameters dictionary.

This function compares the value associated with plant_config_key in plant_config_dict to the value associated with pf_config_key in pf_param_dict. If pf_config_key is not present in pf_param_dict, the value from plant_config_dict is used as the default. If the values are inconsistent, a ValueError is raised with a descriptive message.

Parameters:
  • plant_config_dict (dict) – Dictionary containing plant configuration parameters.

  • pf_param_dict (dict) – Dictionary containing ProFAST parameter values.

  • plant_config_key (str) – Key to look up in plant_config_dict.

  • pf_config_key (str) – Key to look up in pf_param_dict.

Raises:

ValueError – If the values for the specified keys in the two dictionaries are inconsistent.