From fdbe9fae22edc411b25bffdf6c7a0e0306e8a345 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Wed, 13 Dec 2023 15:25:36 +1100 Subject: [PATCH] * nemo/generators.py: Typo fix. --- nemo/generators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nemo/generators.py b/nemo/generators.py index 552474cd..073a1715 100644 --- a/nemo/generators.py +++ b/nemo/generators.py @@ -870,7 +870,7 @@ def capcost(self, costs): """Return the capital cost.""" kwh = self.battery.maxstorage * 1000 assert self.shours in [1, 2, 4, 8] - cost_per_kwh = costs.totcost_per_kwh[type(self)][shours] + cost_per_kwh = costs.totcost_per_kwh[type(self)][self.shours] return kwh * cost_per_kwh def fixed_om_costs(self, costs):