Skip to content

Commit

Permalink
Allow underscores in solver names (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdiener authored and Midnighter committed Nov 29, 2017
1 parent 9e0e595 commit 8c2a45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cobra/util/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SolverNotFound(Exception):


# Define all the solvers that are found in optlang.
solvers = {match.split("_")[0]: getattr(optlang, match)
solvers = {match.split("_interface")[0]: getattr(optlang, match)
for match in dir(optlang) if "_interface" in match}

# Defines all the QP solvers implemented in optlang.
Expand Down

0 comments on commit 8c2a45f

Please sign in to comment.