-
Notifications
You must be signed in to change notification settings - Fork 80
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
Handling unsampled states in offline/realtime analysis. #593
Conversation
This test, inside |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@ijpulidos : Was this test passing before? If so, we may want to discuss editing it or adding another version of it that fails without this PR |
@zhang-ivy Yeah, good catch! I guess it is worth mentioning that failing to make the MBAR estimates in the My guess is that since we are relying more and more on this real time analysis file, it is a good idea to write a test for it. I'll raise an issue about it, and maybe also discuss in the same issue if it's worth to stop/kill the simulation if the MBAR estimates are not correctly computed. Does that sound okay? |
So this means running the |
Ah, I didn't realize this!
Yes sounds good, I think its ok for that to be a part of the next release, not openmmtools 0.21.4 |
Description
This aims to refactor
MultiStateSampler._offline_analysis
to handle unsampled states when doing the mbar estimate.In this case the
_offline_analysis
method was decoupled from the_online_analisis
one (which is still experimental). So that it initializes the first time with zeros as guess and subsequent results are updated using the previous calculation.For this I had to make a new private attribute
_last_mbar_f_k_offline
which gets also written to the nc file independently of the attributes used in the_online_analysis
method.Resolves #592
Todos
Status