Skip to content

Commit

Permalink
fix: correctly pass slice_size argument
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianHofmann committed Nov 15, 2024
1 parent e314847 commit cfd1cde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Release Notes
=============

.. Upcoming Version
.. ----------------
Upcoming Version
----------------

* Fix the `slice_size` argument in the `solve` function. The argument was not properly passed to the `to_file` function.

Version 0.4.0
--------------
Expand Down
4 changes: 3 additions & 1 deletion linopy/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit cfd1cde

Please sign in to comment.