Skip to content

Commit

Permalink
Edit to a function call
Browse files Browse the repository at this point in the history
  • Loading branch information
ishita9 committed Sep 18, 2024
1 parent 9288adc commit 49812be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metcalcpy/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def _bootstrap_distribution_cbb(logger, values_lists, stat_func_lists,
num_threads = _multiprocessing.cpu_count()

if num_threads <= 1:
results = _bootstrap_sim_cbb(values_lists, stat_func_lists,
results = _bootstrap_sim_cbb(logger, values_lists, stat_func_lists,
num_iterations, iteration_batch_size, None, block_length)
else:
pool = _multiprocessing.Pool(num_threads)
Expand All @@ -232,7 +232,7 @@ def _bootstrap_distribution_cbb(logger, values_lists, stat_func_lists,
results = []
for seed in _np.random.randint(0, 2 ** 32 - 1, num_threads):
logger.debug(f"Starting thread with seed {seed}.")
r = pool.apply_async(_bootstrap_sim_cbb, (values_lists, stat_func_lists,
r = pool.apply_async(_bootstrap_sim_cbb, (logger, values_lists, stat_func_lists,
iter_per_job,
iteration_batch_size, seed, block_length))
results.append(r)
Expand Down

0 comments on commit 49812be

Please sign in to comment.