From 381856d33badf9262d3a670b3da988306785839d Mon Sep 17 00:00:00 2001 From: Zak King Date: Wed, 12 Jul 2017 07:32:50 -0700 Subject: [PATCH] Fix esolver by changing sol path in esolver command --- cobra/solvers/esolver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cobra/solvers/esolver.py b/cobra/solvers/esolver.py index 12a08c599..77767e637 100644 --- a/cobra/solvers/esolver.py +++ b/cobra/solvers/esolver.py @@ -75,7 +75,7 @@ def solve_problem(self, **solver_parameters): with NamedTemporaryFile(suffix=".sol") as f: self.solution_filepath = f.name command = [ESOLVER_COMMAND, "-b", self.basis_filepath, - "-O", self.solution_filepath[:-4]] + "-O", self.solution_filepath] if existing_basis is not None and isfile(existing_basis): command.extend(["-B", existing_basis]) command.extend(["-L", lp_filepath])