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

Returning and broadcasting _replica_thermodynamic_states #562

Merged
merged 4 commits into from
Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openmmtools/multistate/multistatesampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ def run(self, n_iterations=None):
timer.start('Iteration')

# Update thermodynamic states
self._mix_replicas()
self._replica_thermodynamic_states = self._mix_replicas()

# Propagate replicas.
self._propagate_replicas()
Expand Down
1 change: 1 addition & 0 deletions openmmtools/multistate/replicaexchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ def _mix_replicas(self):
swap_fraction_accepted = float(n_swaps_accepted) / n_swaps_proposed
logger.debug("Accepted {}/{} attempted swaps ({:.1f}%)".format(n_swaps_accepted, n_swaps_proposed,
swap_fraction_accepted * 100.0))
return self._replica_thermodynamic_states

@staticmethod
@njit
Expand Down