Unverified Commit 22410696 authored by St. Elmo's avatar St. Elmo
Browse files

added tests for flux summary

parent 1fe25ce5
Pipeline #43071 failed with stages
in 7 minutes and 44 seconds
......@@ -19,7 +19,6 @@ end
exclude_biomass = false,
small_flux_bound = 1.0/_constants.default_reaction_bound^2,
large_flux_bound = _constants.default_reaction_bound,
round_digits = 3,
keep_unbounded = false,
)::FluxSummary
......
@testset "Flux summary" begin
model = load_model(model_paths["e_coli_core.json"])
sol = flux_balance_analysis_dict(
model,
Tulip.Optimizer;
modifications = [
change_optimizer_attribute("IPM_IterationsLimit", 200),
],
)
fr = flux_summary(sol; keep_unbounded=true, large_flux_bound=25)
@test isapprox(fr.biomass_fluxes["BIOMASS_Ecoli_core_w_GAM"], 0.8739215022690006; atol=TEST_TOLERANCE)
@test isapprox(fr.export_fluxes["EX_co2_e"], 22.80983339307183; atol=TEST_TOLERANCE)
@test isapprox(fr.import_fluxes["EX_o2_e"], -21.799492758430517; atol=TEST_TOLERANCE)
@test isapprox(fr.unbounded_fluxes["EX_h2o_e"], 29.175827202663395; atol=TEST_TOLERANCE)
end
@testset "Flux variability summary" begin
model = load_model(model_paths["e_coli_core.json"])
sol = flux_balance_analysis_dict(
model,
Tulip.Optimizer;
modifications = [
change_optimizer_attribute("IPM_IterationsLimit", 200),
],
)
fr = flux_variability_summary(sol)
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