From 3e49987c6854aa8a0404ee039ef19f02e0895e65 Mon Sep 17 00:00:00 2001 From: Fabian Date: Fri, 15 Nov 2024 16:25:24 +0100 Subject: [PATCH] fix: correctly pass `slice_size` argument --- doc/release_notes.rst | 5 +++++ linopy/model.py | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/release_notes.rst b/doc/release_notes.rst index 69564ac6..6447e6a3 100644 --- a/doc/release_notes.rst +++ b/doc/release_notes.rst @@ -4,6 +4,11 @@ Release Notes .. Upcoming Version .. ---------------- +Version 0.4.1 +-------------- + +* Fix the `slice_size` argument in the `solve` function. The argument was not properly passed to the `to_file` function. + Version 0.4.0 -------------- diff --git a/linopy/model.py b/linopy/model.py index 160a16e3..bb9b41ee 100644 --- a/linopy/model.py +++ b/linopy/model.py @@ -1124,7 +1124,9 @@ def solve( env=env, ) else: - problem_fn = self.to_file(to_path(problem_fn), io_api) + problem_fn = self.to_file( + to_path(problem_fn), io_api, slice_size=slice_size + ) result = solver.solve_problem_from_file( problem_fn=to_path(problem_fn), solution_fn=to_path(solution_fn),