From 1de9df34e3908d220fd6c63f2dd0917372d4bbfd Mon Sep 17 00:00:00 2001 From: Jostein Solaas Date: Tue, 12 Sep 2023 11:28:11 +0200 Subject: [PATCH] fix: wrongly accessed rate in pump system v2 --- .../common/libecalc/input/yaml_types/components/pump_system.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ecalc/libraries/libecalc/common/libecalc/input/yaml_types/components/pump_system.py b/src/ecalc/libraries/libecalc/common/libecalc/input/yaml_types/components/pump_system.py index e52886f1d6..0f2ddafcce 100644 --- a/src/ecalc/libraries/libecalc/common/libecalc/input/yaml_types/components/pump_system.py +++ b/src/ecalc/libraries/libecalc/common/libecalc/input/yaml_types/components/pump_system.py @@ -205,7 +205,8 @@ def to_dto( else: rates = [ Expression.multiply( - Expression.setup_from_expression(self.rate), Expression.setup_from_expression(rate_fraction) + Expression.setup_from_expression(operational_setting.total_system_rate), + Expression.setup_from_expression(rate_fraction), ) for rate_fraction in operational_setting.rate_fractions ]