Skip to content

Commit

Permalink
Add temporary fix for updated config kwargs in solve
Browse files Browse the repository at this point in the history
  • Loading branch information
irm-codebase committed Nov 20, 2024
1 parent 0952586 commit 59cbddf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/calliope/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 59cbddf

Please sign in to comment.