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

backend's basedir not applied to sampler_state.txt #36

Open
mdhimes opened this issue Feb 1, 2021 · 0 comments
Open

backend's basedir not applied to sampler_state.txt #36

mdhimes opened this issue Feb 1, 2021 · 0 comments

Comments

@mdhimes
Copy link

mdhimes commented Feb 1, 2021

Hi there, I noticed that when running DNest4 via the Python interface, all files except sampler_state.txt are properly saved into the basedir set when initializing the backend. For consistency with the rest of the DNest4 output, I think it would be good to have this file also saved into basedir, unless I am overlooking some reason this cannot be done.

For details on how I am using DNest4 -- I initialize a CSVBackend with basedir set, pass that to DNest4Sampler when creating the sampler object, run it with the sample method (and the enumerated for loop, as in examples), then call the sampler object's postprocess method, which looks to just call the postprocess function in analysis.py with the sampler object's backend.

Looking in the code, the CSVBackend sets basedir for all of the output files mentioned in the class, which doesn't include sampler_state.txt (see here). That file shows up here but that is the only mention of it that I find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant