From 793725938f0c2f3b96c74bb187007054dada9dad Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Tue, 8 Aug 2023 11:53:02 +0000 Subject: [PATCH] Black reformating --- premise/fuels.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/premise/fuels.py b/premise/fuels.py index f3ccf3a0..19c0461b 100644 --- a/premise/fuels.py +++ b/premise/fuels.py @@ -358,7 +358,8 @@ def __init__( for sublist in list(self.fuel_groups.values()) for item in sublist ] - if g in self.iam_data.production_volumes.coords["variables"].values.tolist() + if g + in self.iam_data.production_volumes.coords["variables"].values.tolist() ] ) @@ -1926,7 +1927,9 @@ def fetch_fuel_share( / self.iam_fuel_markets.sel( region=region, variables=relevant_variables ).sum(dim="variables") - ).fillna(0).interp( + ) + .fillna(0) + .interp( year=np.arange(self.year, self.year + period + 1), kwargs={"fill_value": "extrapolate"}, )