-
Notifications
You must be signed in to change notification settings - Fork 52
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
fix: constructEquations #202
Conversation
- Previously the reversibility is obtained from the `rev` field, which could be inaccurate and even unavailable sometimes. This fixation uses `lb` field to get the reversibility and avoids the obsolete `rev` field.
It makes a lot of sense to stop using the Something like:
|
Also, in the process of abandoning the use of the |
@edkerk based on a previous discussion in #184 (comment), will the |
In this commit, the reversibility is obtained by querying both `lb` and `ub` fields. This is to avoid the obsolete `rev` field and weird cases (e.g. ub=0 and lb=-1000). Note that all reactions in a model should be defined in their forward direction, so that their equations could be properly formulated by this function.
How about having an option of constructing reactions using |
- So far, reaction equations can be generated with either met names or met ids. Here an additional option is added for allowing the generation of equations with met formulas. This feature is found to be useful when checking the mass balance of reactions.
Sure! I'm not sure when this is useful, but if you find a use for it that's great. You've implemented it correctly, not breaking previous functionality, so I have no problem with this part. |
Main improvements in this PR:
lb
andub
fields, instead of the obsoleterev
field that could be inaccurate or unavailableInput
andOutput
sub-headingsNOTE: None of these changes affect backward-compatibility of any of the modified functions. All reactions in a model should be organized in their forward direction, typically by setting
ub = 1000
andlb = -1000 (or 0)
, so that their equations can be correctly constructed by theconstructEquations
function.I hereby confirm that I have:
devel
as a target branch