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

Allow start file to be specified for mcmc samplers #3394

Merged
merged 1 commit into from
Jul 25, 2020

Conversation

cdcapano
Copy link
Contributor

@cdcapano cdcapano commented Jul 24, 2020

This allows a file to be provided that will be used for the starting positions of an MCMC sampler. This is different than using an initial distribution in that the file specifies exactly the points to use, rather than just an initial distribution. It's mostly equivalent to providing a checkpoint file, but it doesn't cause the random sampler to be reset. The way this is done is you provide start-file = file/path/start.hdf in the [sampler] section of the config file. The start file is assumed to be an inference file with the same number of walkers/chains. The samples are pulled from the last iteration in that file.

This also a fixes a bug in the copy function in base_hdf that I came across while testing this.

@ahnitz ahnitz merged commit 6506068 into gwastro:master Jul 25, 2020
GarethCabournDavies pushed a commit to GarethCabournDavies/pycbc that referenced this pull request Jul 30, 2020
lenona pushed a commit to lenona/pycbc that referenced this pull request Sep 14, 2020
OliverEdy pushed a commit to OliverEdy/pycbc that referenced this pull request Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants