halomod / halomod

Python package for dealing with the Halo Model
Other
30 stars 12 forks source link

[BUG] MCMC not working due to not pickleable class #94

Open WeakDog opened 3 years ago

WeakDog commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

There is an error in running the tutorial Fitting Correlation Functions with emcee from the website https://halomod.readthedocs.io/en/latest/examples/fitting.html

To Reproduce Steps to reproduce the behavior:

  1. It is happening when running the cell

sampler.run_mcmc(initialpos, nsteps=10000, progress=True);

I'm using halomod version: 2.0.2.dev14+gb6b85b7.

Here is the full error info. image

steven-murray commented 3 years ago

Thanks @WeakDog -- I'll look into this ASAP.