From a79d954673bb3e62615050fb1448d3237a79441d Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Thu, 25 Jul 2024 11:36:37 +0200 Subject: [PATCH] Version bump --- premise/battery.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/premise/battery.py b/premise/battery.py index ffbe83b6..1af7a375 100644 --- a/premise/battery.py +++ b/premise/battery.py @@ -147,6 +147,9 @@ def adjust_battery_market_shares(self) -> None: scenario=market_datasets[ds["name"]], ).interp(year=self.year) + # replace NaNs with zeros + shares = shares.fillna(0) + if "log parameters" not in ds: ds["log parameters"] = {}