From 1601b38cd243428843b525b365250ea2887c4268 Mon Sep 17 00:00:00 2001 From: codingfabi Date: Sun, 5 May 2024 19:00:03 +0200 Subject: [PATCH] adjust parameters --- co2calculator/energy/calculate_energy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/co2calculator/energy/calculate_energy.py b/co2calculator/energy/calculate_energy.py index f3c9bf1..6c8370e 100644 --- a/co2calculator/energy/calculate_energy.py +++ b/co2calculator/energy/calculate_energy.py @@ -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())