Skip to content

Commit

Permalink
implement parallel sample computation using Pool
Browse files Browse the repository at this point in the history
  • Loading branch information
aradermacher committed Dec 17, 2024
1 parent 71bb7ad commit 5487765
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion probeye/inference/bias/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def logprob(x):
logger.debug("Setting up EnsembleSampler")

with Pool(processes=n_processes) as pool:
logger.info("fparallel sampling using multiprocessing with {pool}")
logger.info(f"parallel sampling using multiprocessing with {pool}")
self.sampler = emcee.EnsembleSampler(
nwalkers=n_walkers,
ndim=self.problem.n_latent_prms_dim,
Expand Down
2 changes: 1 addition & 1 deletion probeye/inference/emcee/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def logprob(x):


with Pool(processes=n_processes) as pool:
logger.info("fparallel sampling using multiprocessing with {pool}")
logger.info(f"parallel sampling using multiprocessing with {pool}")
sampler = emcee.EnsembleSampler(
nwalkers=n_walkers,
ndim=self.problem.n_latent_prms_dim,
Expand Down

0 comments on commit 5487765

Please sign in to comment.