Skip to content

Commit

Permalink
implement reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
stelmo committed Nov 27, 2021
1 parent d585420 commit d3103e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/analysis/max_min_driving_force.jl
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,15 @@ function max_min_driving_force_variability(
workers = [myid()],
optimal_objective_value = nothing,
bounds = z -> (z, Inf),
modifications = [],
kwargs...
)
if isnothing(optimal_objective_value)
initsol = max_min_driving_force(
model,
reaction_standard_gibbs_free_energies,
optimizer;
modifications,
kwargs...
)
mmdf = initsol.mmdf
Expand Down Expand Up @@ -271,6 +273,7 @@ function max_min_driving_force_variability(
m,
reaction_standard_gibbs_free_energies,
optimizer;
modifications = [args; modifications],
kwargs...
),
workers,
Expand Down
3 changes: 2 additions & 1 deletion test/analysis/max_min_driving_force.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@
ignore_reaction_ids = ["H2Ot"],
modifications = [change_optimizer_attribute("IPM_IterationsLimit", 1000)],
)

pyk_idx = first(indexin(["PYK"], reactions(model)))
@test isapprox(
sols[pyk_idx].dg_reactions["PYK"],
sols[pyk_idx, 1].dg_reactions["PYK"],
-1.5895040002691128;
atol = TEST_TOLERANCE,
)
Expand Down

0 comments on commit d3103e9

Please sign in to comment.