4.8. energy_security module¶
- energy_security.calc_energy_security_costs(settings, inv_df, costs_df, id_cols)[source]¶
- Parameters:
settings: The SetInputs class.
inv_df: A DataFrame of emission inventories.
costs_df: A DataFrame based on one of the output cost reports.
id_cols: A List of the identifying columns to use as keys for the inventory dictionary that is created in function.
- Return:
A DataFrame of energy security costs (imported oil barrels times cost factor).
- energy_security.get_energy_security_cost_factors(settings, year)[source]¶
- Note:
This function reads a dictionary of energy security premia and returns those for the passed year.
- Parameter:
settings: The SetInputs class.
year: The calendar year for which energy security cost factors are needed.
- Return:
1 value - the energy security cost factor (dollars/BBL).