Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chain has infinite run time? #48

Open
keelder opened this issue Nov 17, 2020 · 1 comment
Open

Chain has infinite run time? #48

keelder opened this issue Nov 17, 2020 · 1 comment
Assignees
Labels
context: mcmc type: bug Something isn't working
Milestone

Comments

@keelder
Copy link

keelder commented Nov 17, 2020

Describe what you would like to do
I am attempting to run through the MCMC Introduction tutorial, but the chain never actually finishes running to produce data. I am trying to find out what needs to be changed in the code to shorten the run time.

What I've tried
I've tried debugging using a number of methods, but I cannot figure out why run_mcmc cannot complete or where it is stuck.

@keelder keelder added docs question Further information is requested labels Nov 17, 2020
@qyx268
Copy link
Collaborator

qyx268 commented Nov 17, 2020

Thanks @keelder for reporting this bug. I can confirm this is also happening to me by following https://21cmmc.readthedocs.io/en/latest/tutorials/mcmc_intro.html#Running-MCMC. In fact, run_mcmc stopped (i.e. cpu percentages reach 0). I suspect this has to do with simulating the mock PS. We will look into this soon.

Meanwhile, a quick solution is to set simulate=False after having produced the simple_mcmc_data_*.npz in the data folder. @keelder, please note that len(params) * walkersRatio / threadCount>1 and len(params) * walkersRatio % threadCount=0, so if you are following the tutorial, please set e.g. threadCount=3 or walkersRatio=6.

@qyx268 qyx268 added type: bug Something isn't working and removed docs question Further information is requested labels Nov 17, 2020
@steven-murray steven-murray added this to the v1 milestone Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
context: mcmc type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants