Unverified Commit ff85fe43 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

slight simplification

parent dc8b02ba
...@@ -113,13 +113,13 @@ function flux_variability_analysis_dict(model::MetabolicModel, optimizer; kwargs ...@@ -113,13 +113,13 @@ function flux_variability_analysis_dict(model::MetabolicModel, optimizer; kwargs
model, model,
optimizer; optimizer;
kwargs..., kwargs...,
ret = m -> (objective_value(m), JuMP.value.(m[:x])), ret = m -> JuMP.value.(m[:x]),
) )
rxns = reactions(model) rxns = reactions(model)
return ( return (
Dict(zip(rxns, [Dict(zip(rxns, fluxes)) for (_, fluxes) in vs[:, 1]])), Dict(zip(rxns, [Dict(zip(rxns, fluxes)) for fluxes in vs[:, 1]])),
Dict(zip(rxns, [Dict(zip(rxns, fluxes)) for (_, fluxes) in vs[:, 2]])), Dict(zip(rxns, [Dict(zip(rxns, fluxes)) for fluxes in vs[:, 2]])),
) )
end end
......
Supports Markdown
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