From 59cbddf49b89e8ae458bb57f84cb2e4530abc170 Mon Sep 17 00:00:00 2001 From: Ivan Ruiz Manuel <72193617+irm-codebase@users.noreply.github.com> Date: Wed, 20 Nov 2024 11:27:39 +0100 Subject: [PATCH] Add temporary fix for updated config kwargs in solve --- src/calliope/model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calliope/model.py b/src/calliope/model.py index 26a14653..bc4eb938 100644 --- a/src/calliope/model.py +++ b/src/calliope/model.py @@ -342,7 +342,8 @@ def solve(self, force: bool = False, warmstart: bool = False, **kwargs) -> None: to_drop = [] solve_config = self.config.update({"solve": kwargs}).solve - mode = self.config.build.mode + # FIXME: find a way to avoid overcomplicated passing of settings between modes + mode = self.config.update(self.config.applied_keyword_overrides).build.mode self._model_data.attrs["timestamp_solve_start"] = log_time( LOGGER, self._timings,