Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Aug 8, 2023
1 parent 882bfbc commit 7937259
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions premise/fuels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
]
)

Expand Down Expand Up @@ -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"},
)
Expand Down

0 comments on commit 7937259

Please sign in to comment.