Dear Wentong,
First, there was a recent change to the repository. Now, the MDF function has been moved to a new package called
`equilibrator-pathway`. Latest version is 0.3.1
Nothing else has changed, essentially, but I still recommend using that instead to get the latest updates.
Regarding the bounds. You can try this:
from equilibrator_api import ComponentContribution, Q_
from equilibrator_pathway import Bounds, Pathway
bounds = Bounds.GetDefaultBounds()
bounds.default_lb = Q_("1 uM")bounds.default_ub = Q_("10 mM")
comp_contrib =
ComponentContribution()comp_contrib.p_h = p_h
comp_contrib.ionic_strength = ionic_strength
comp_contrib.temperature = temperaturepp = Pathway(reactions, fluxes_np, bounds=bounds, comp_contrib=comp_contrib)
mdf_data = pp.calc_mdf()
I hope this is helpful. Best,
Elad