Skip to content

Commit

Permalink
adjust parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
codingfabi committed May 5, 2024
1 parent 2ec2e45 commit 1601b38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion co2calculator/energy/calculate_energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def calc_co2_electricity(
if options is None:
options = {}
params = ElectricityParameters(**options)
emission_params = ElectricityEmissionParameters(**params)
emission_params = ElectricityEmissionParameters(
**params.electricity_emission_parameters
)

# Get the co2 factor
co2e = emission_factors.get(params.dict())
Expand Down

0 comments on commit 1601b38

Please sign in to comment.