Skip to content

Commit

Permalink
Fix add_to_solvers
Browse files Browse the repository at this point in the history
  • Loading branch information
cdiener committed Mar 14, 2017
1 parent 3981e31 commit a3e51e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions micom/problems.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from micom.util import fluxes_from_primals
import pandas as pd
from cobra.util.solver import add_to_solver
from cobra.flux_analysis.parsimonious import add_pfba


Expand Down Expand Up @@ -46,7 +45,7 @@ def linear_optcom(community, fractions=0.0, fluxes=False, pfba=True):
gcs = pd.Series(None, species)
com_fluxes = None
with community as com:
add_to_solver(com, to_add)
com.add_cons_vars(to_add)
com.solver.optimize()
if com.solver.status == "optimal":
for sp in species:
Expand Down

0 comments on commit a3e51e2

Please sign in to comment.