cdanielmachado / framed

framed: a metabolic modeling package for python
http://framed.readthedocs.io/
Other
25 stars 10 forks source link

Add constraint argument to simplify function #22

Closed EmanuelGoncalves closed 5 years ago

EmanuelGoncalves commented 7 years ago

Hi,

Model simplify function would benefit from having argument constraints:

c_model = simplify(c_model, constraints=environmental_conditions, inplace=False)

This would allow to retrieve a context-specific model without changing the original one.

Thanks,

cdanielmachado commented 5 years ago

Had forgotten about this... :)

I added the argument, it will come in the next release.