Commit 683ef33f authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

update JSONModel to dense bounds

parent d049b5d9
......@@ -146,12 +146,8 @@ Get the bounds for reactions, assuming the information is stored in
`.lower_bound` and `.upper_bound`.
"""
bounds(model::JSONModel) = (
sparse([
get(rxn, "lower_bound", -_constants.default_reaction_bound) for rxn in model.rxns
]),
sparse([
get(rxn, "upper_bound", _constants.default_reaction_bound) for rxn in model.rxns
]),
[get(rxn, "lower_bound", -_constants.default_reaction_bound) for rxn in model.rxns],
[get(rxn, "upper_bound", _constants.default_reaction_bound) for rxn in model.rxns],
)
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment