Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 18, 2024
1 parent 0f04096 commit 3668a42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion linopy/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ def read_io_api_from_problem_file(problem_fn: Path | str):
return problem_fn.split(".")[-1]


def maybe_adjust_objective_sign(solution: Solution, io_api: str | None, sense: str | None) -> Solution:
def maybe_adjust_objective_sign(
solution: Solution, io_api: str | None, sense: str | None
) -> Solution:
if sense == "min":
return solution
if np.isnan(solution.objective):
Expand Down

0 comments on commit 3668a42

Please sign in to comment.