Skip to content

Commit

Permalink
fix dict bug in builder
Browse files Browse the repository at this point in the history
  • Loading branch information
stelmo committed Feb 1, 2024
1 parent d43caa3 commit 459e33c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/builders/mmdf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ function log_concentration_constraints(
)
rxns = Dict(
idx => rid for
(idx, rid) in enumerate(Symbol.(A.reactions(model))) if subset_reactions(rid)
(idx, rid) in enumerate(A.reactions(model)) if subset_reactions(rid)
)
mets = Dict(
idx => mid for (idx, mid) in enumerate(Symbol.(A.metabolites(model))) if
idx => mid for (idx, mid) in enumerate(A.metabolites(model)) if
subset_metabolites(mid)
)
stoi = A.stoichiometry(model)
Expand All @@ -57,7 +57,7 @@ function log_concentration_constraints(
constraints =
:log_concentrations^C.variables(
keys = Symbol.(values(mets)),
bounds = concentration_bound.(mets),
bounds = concentration_bound.(values(mets)),
)

cs = C.ConstraintTree()
Expand Down

0 comments on commit 459e33c

Please sign in to comment.