Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with cobrapy versions >= 0.6.0 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion qminospy/me1.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
from qminospy.me2 import ME_NLP, makeME_LP, makeME_LP_for_NLP, makeME_NLP, makeME_VA
from qminospy.me2 import make_nonlin_constraints, make_linear_constraints
from qminospy import qwarmLP
from cobra.core.Solution import Solution
import cobra
if cobra.__version__ < '0.6.0':
from cobra.core.Solution import Solution
else:
from cobra.core.solution import LegacySolution as Solution
from cobra import DictList
from cobra import Reaction, Metabolite
from sympy import lambdify, Basic, Symbol
Expand Down
7 changes: 5 additions & 2 deletions qminospy/me2.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@

import numpy as np
import scipy.sparse as sps
from cobra.core.Solution import Solution
import cobra
if cobra.__version__ < '0.6.0':
from cobra.core.Solution import Solution
else:
from cobra.core.solution import LegacySolution as Solution
from cobra import DictList
from cobra import Reaction, Metabolite
from sympy import Basic
Expand Down Expand Up @@ -1052,7 +1056,6 @@ def update_dilution_fluxes(self, csense='G'):
"""
return self.make_dilution_fluxes(csense)


def make_dilution_fluxes(self, csense='G', macromolecules=['complex'], verbosity=1,
LB_DIL=0.0, UB_DIL=1e6, mols_exclude=[]):
"""
Expand Down