Skip to content

Commit 3e49987

Browse files
committed
fix: correctly pass slice_size argument
1 parent e314847 commit 3e49987

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

doc/release_notes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Release Notes
44
.. Upcoming Version
55
.. ----------------
66
7+
Version 0.4.1
8+
--------------
9+
10+
* Fix the `slice_size` argument in the `solve` function. The argument was not properly passed to the `to_file` function.
11+
712
Version 0.4.0
813
--------------
914

linopy/model.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,9 @@ def solve(
11241124
env=env,
11251125
)
11261126
else:
1127-
problem_fn = self.to_file(to_path(problem_fn), io_api)
1127+
problem_fn = self.to_file(
1128+
to_path(problem_fn), io_api, slice_size=slice_size
1129+
)
11281130
result = solver.solve_problem_from_file(
11291131
problem_fn=to_path(problem_fn),
11301132
solution_fn=to_path(solution_fn),

0 commit comments

Comments
 (0)