Skip to content
Snippets Groups Projects
Commit 5a53c840 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil :bicyclist:
Browse files

fix a sneaky bug

parent 5e949818
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ function _mkrxn(substrates, products)
elseif typeof(substrates) == MetaboliteWithCoefficient
metdict[substrates.metabolite.id] =
get(metdict, substrates.metabolite.id, 0.0) - 1.0 * abs(substrates.coeff)
elseif typeof(products) == Vector{MetaboliteWithCoefficient}
elseif typeof(substrates) == Vector{MetaboliteWithCoefficient}
for mwc in substrates
metdict[mwc.metabolite.id] =
get(metdict, mwc.metabolite.id, 0.0) - 1.0 * abs(mwc.coeff)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment