-
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
More streamlined context caches usage #547
Conversation
Hmm, the test I designed for this is failing. It seems that using |
…attr for computing energies.
I found out that |
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.
Let's also make sure we document energy_context_cache
and sampler_context_cache
as class attributes of MultiStateSampler
, note that they default to the global context cache, and potentially also add an example of how to override them with your own ContextCache in the docstring example.
@jchodera This should be ready for review, I updated the documentation as requested. Thanks! |
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.
Looks really good! Thanks!
I guess the change to |
Not sure I know how to fix that,---can we continue without it and have
@mikemhenry look into it in a separate PR?
|
Description
Context caches for propagation and energy computations are expected to be handled only via
MultiStateSampler
instance attributes. Default behavior is to use global cache. If users want to avoid cycling they are expected to specify different context caches via the instance attributes.Since we are not serializing context cache information, resuming simulations requires users to specify context cache attributes upon resuming.
Resolves #546
Todos
Status