Skip to content

Commit cfd1cde

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

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

doc/release_notes.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
Release Notes
22
=============
33

4-
.. Upcoming Version
5-
.. ----------------
4+
Upcoming Version
5+
----------------
6+
7+
* Fix the `slice_size` argument in the `solve` function. The argument was not properly passed to the `to_file` function.
68

79
Version 0.4.0
810
--------------

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)