Skip to content
Snippets Groups Projects
Unverified Commit 7bd0d059 authored by cylon-x's avatar cylon-x :robot: Committed by St. Elmo
Browse files

automatic formatting changes

parent 6abcc2e4
No related branches found
No related tags found
No related merge requests found
......@@ -53,14 +53,19 @@ function hit_and_run(
N = 1000,
keepevery = _constants.sampling_keep_iters,
samplesize = _constants.sampling_size,
num_warmup_points = length(reactions(model))
num_warmup_points = length(reactions(model)),
)
ws, lbs, ubs = warmup(model, optimizer; modifications=modifications, warmup_points=collect(1:num_warmup_points))
ws, lbs, ubs = warmup(
model,
optimizer;
modifications = modifications,
warmup_points = collect(1:num_warmup_points),
)
samples = zeros(length(lbs), samplesize) # sample storage
current_point = zeros(length(lbs))
current_point .= ws[1,1] # just use the first warmup point, randomness is introduced later
current_point .= ws[1, 1] # just use the first warmup point, randomness is introduced later
direction = zeros(length(lbs))
sample_num = 0
......
......@@ -21,7 +21,7 @@ function warmup(
for mod in modifications
mod(model, optmodel)
end
map(fetch, save_at.(workers, :warmup_model, Ref(:($optmodel))))
ret = m -> value.(m[:x]) # get all the fluxes
......@@ -34,6 +34,6 @@ function warmup(
# free the data on workers
map(fetch, remove_from.(workers, :warmup_model))
lbs, ubs = get_bound_vectors(optmodel)
return fluxes, lbs, ubs
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment