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

fix problem in screening

How come this didn't break with single-worker tests?
parent 4fa57516
Pipeline #42147 passed with stages
in 12 minutes and 59 seconds
......@@ -77,7 +77,7 @@ function screen(
map(fetch, save_at.(workers, :cobrexa_screen_variants_model, Ref(model)))
map(fetch, save_at.(workers, :cobrexa_screen_variants_analysis_fn, Ref(analysis)))
map(fetch, get_from.(workers, Ref(:(precache!(cobrexa_screen_model)))))
map(fetch, get_from.(workers, Ref(:(precache!(cobrexa_screen_variants_model)))))
if isnothing(variants)
if isnothing(args)
......
......@@ -34,16 +34,23 @@
return mm
end
ws = addprocs(2)
@everywhere using COBREXA
@everywhere using Tulip
@test screen_variants(
m,
[[quad_rxn(i)] for i = 1:3],
m -> flux_balance_analysis_vec(m, Tulip.Optimizer),
m -> flux_balance_analysis_vec(m, Tulip.Optimizer);
workers = ws,
) == [
[250.0, -250.0, -1000.0, 250.0, 1000.0, 250.0, 250.0],
[500.0, 500.0, 1000.0, 500.0, -1000.0, 500.0, 500.0],
[500.0, 500.0, 1000.0, -500.0, 1000.0, 500.0, 500.0],
]
rmprocs(ws)
# test solver modifications
@test screen(
m;
......
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