bfarr / kombine

A kernel-density-based, embarrassingly parallel ensemble sampler
http://pages.uoregon.edu/bfarr/kombine
MIT License
34 stars 25 forks source link

Fix mpi example #7

Closed adrn closed 9 years ago

adrn commented 9 years ago

Ok, this should do it...sorry I suck, you're merging my PRs too quickly :)

The example now works properly with MPI. Also, made sure that the sampler properly stores an MPIPool pool.

bfarr commented 9 years ago

At least I found a few of the problems after I merged. Better than never...

The only change I would make (not related to these fixes) is to let the user know they need mpi4py in the example too. If you have mpipool but not mpi4py, the example will still catch the ImportError and say mpipool is needed.

adrn commented 9 years ago

Cool -- done!

bfarr commented 9 years ago

Fantastic. Thank you!