From 459e33c18e188d13989bb48a17cc80d492ea3485 Mon Sep 17 00:00:00 2001 From: "St. Elmo Wilken" Date: Thu, 1 Feb 2024 15:40:12 +0100 Subject: [PATCH] fix dict bug in builder --- src/builders/mmdf.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/builders/mmdf.jl b/src/builders/mmdf.jl index 65fe89d6..c0c6ef16 100644 --- a/src/builders/mmdf.jl +++ b/src/builders/mmdf.jl @@ -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) @@ -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()