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

Add stdout to tqdm

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