Commit 06d7abea authored by theochri's avatar theochri
Browse files

improved the use of kwargs

parent 4d896497
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ def solve(
        solver = pulp.solvers.GLPK(msg=verbose)
    elif solver == "glpk-cluster":
        try:
            solver = pulp.solvers.GLPK(msg=verbose, path=solver_path)
            solver = pulp.solvers.GLPK(msg=verbose, path=kwargs['solver_path'])
        except:
            print("glpk_path is not set, going to default.")
            # This catches the error if glpk_path is not set