These are chat archives for opencobra/cobrapy

3rd
Mar 2017
Christian Diener
@cdiener
Mar 03 2017 16:08
@midnighter The bug with contexts and model.solver + bounds is something was surprising. Probably some fallout of optlang.Model.clone which copies all variables to new objects.
Christian Diener
@cdiener
Mar 03 2017 16:17
@hredestig One suggestion, what about making reaction.forward_variable always get the variable from model.solver via its ID and return None if the ID was not found? This would get rid of Reaction._forward_variable etc. and we would also get rid of the _reset_var_cache() calls. That would also be safe from lower level modifications of model.solver (for instance directly removing reaction vars there).
Christian Diener
@cdiener
Mar 03 2017 16:24
hmmm, but seems to be slower...