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

Code cleanup #6

Merged
merged 1 commit into from
Apr 27, 2015
Merged

Code cleanup #6

merged 1 commit into from
Apr 27, 2015

Conversation

pgrinaway
Copy link
Member

This PR has a few changes:

  • Split the prepare_database function into several smaller functions
  • Remove extraneous code (still some to remove, WIP)
  • Sample over multiple models, with caveats*
  • Change the database backend to use hdf5 instead of text

*There are some issues regarding cross-model proposals, discussing in #5, but I think are more appropriate for a future PR.

@pgrinaway
Copy link
Member Author

Ah, I should add that I've also added a try/except block on the pymbar reweighting bits, since some of those cross-model proposals result in all-NaN energies, which causes a numpy routine called by pymbar to throw a LinAlgError.

@jchodera
Copy link
Member

Good catch on the NaN energies!

Did you actually get the HDF5 backend to work? For some reason, I never managed to get that to work, though I realize I likely wasn't using a conda-installed version of pymc at that point.

@kyleabeauchamp
Copy link
Collaborator

I've had good success with the HDF backend, although I haven't tried during the last year.

@pgrinaway
Copy link
Member Author

The HDF5 backend seems to be working for me. (using the latest git version of pymc)

@jchodera
Copy link
Member

jchodera commented Apr 27, 2015 via email

@pgrinaway pgrinaway changed the title [WIP] Code cleanup Code cleanup Apr 27, 2015
@pgrinaway
Copy link
Member Author

I think this is good to merge, then we can move on to the other issues.

kyleabeauchamp added a commit that referenced this pull request Apr 27, 2015
@kyleabeauchamp kyleabeauchamp merged commit 1d47481 into choderalab:master Apr 27, 2015
@pgrinaway pgrinaway deleted the cleanup branch April 27, 2015 15:57
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

Successfully merging this pull request may close these issues.

None yet

3 participants