Skip to content
Snippets Groups Projects
Commit 8890eb14 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Revert change from map -> imap

parent d376e6e5
No related branches found
No related tags found
1 merge request!782Adds a pool to the reconstruction
Pipeline #124758 passed
......@@ -1113,7 +1113,7 @@ def generate_posterior_samples_from_marginalized_likelihood(
"Using a pool with size {} for nsamples={}"
.format(npool, len(samples))
)
new_samples = np.array(pool.imap(fill_sample, tqdm(fill_args)))
new_samples = np.array(pool.map(fill_sample, tqdm(fill_args)))
pool.close()
else:
new_samples = np.array([fill_sample(xx) for xx in tqdm(fill_args)])
......
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