diff --git a/src/analysis/sampling/hit_and_run.jl b/src/analysis/sampling/hit_and_run.jl index b50c405515036825d9edf1b3fe2661694257e473..de966a4419bd9b2afd0914889cb52801aa01cb32 100644 --- a/src/analysis/sampling/hit_and_run.jl +++ b/src/analysis/sampling/hit_and_run.jl @@ -134,7 +134,7 @@ function _serial_hit_and_run(ws, lbs, ubs, samplesize, keepevery, N) end if λmax <= λmin || λmin == -Inf || λmax == Inf # this sometimes can happen - # @warn "Infeasible direction at iteration $(n)..." # noisy + # @warn "Infeasible direction at iteration $(n)..." # noisy continue end diff --git a/src/analysis/sampling/warmup.jl b/src/analysis/sampling/warmup.jl index d648c1240068606cc8bf04b28ce391513fb69de7..b53951b2beb3df60b95d7b7167c26611352273b4 100644 --- a/src/analysis/sampling/warmup.jl +++ b/src/analysis/sampling/warmup.jl @@ -22,12 +22,18 @@ function warmup( mod(model, optmodel) end - map(fetch, save_at.(workers, :cobrexa_hit_and_run_warmup_model, Ref(:($optmodel)))) + save_model = :($optmodel) + + map(fetch, save_at.(workers, :cobrexa_hit_and_run_warmup_model, Ref(save_model))) ret = m -> value.(m[:x]) # get all the fluxes # error occurs here :/ fluxes = dpmap( - rid -> :($COBREXA._FVA_optimize_reaction(cobrexa_hit_and_run_warmup_model, $rid, $ret)), + rid -> :($COBREXA._FVA_optimize_reaction( + cobrexa_hit_and_run_warmup_model, + $rid, + $ret, + )), CachingPool(workers), [-warmup_points warmup_points], )