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

manually casting objects to np arrays when reading checkpoint #701

Merged
merged 1 commit into from
Jun 1, 2023
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions openmmtools/multistate/multistatesampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,12 +1025,12 @@ def _read_options(check_iteration):
self._thermodynamic_states = thermodynamic_states
self._unsampled_states = unsampled_states
self._sampler_states = sampler_states
self._replica_thermodynamic_states = state_indices
self._replica_thermodynamic_states = np.array(state_indices)
self._energy_thermodynamic_states = energy_thermodynamic_states
self._neighborhoods = neighborhoods
self._energy_unsampled_states = energy_unsampled_states
self._n_accepted_matrix = n_accepted_matrix
self._n_proposed_matrix = n_proposed_matrix
self._n_accepted_matrix = np.array(n_accepted_matrix)
self._n_proposed_matrix = np.array(n_proposed_matrix)
self._metadata = metadata

self._last_mbar_f_k = last_mbar_f_k
Expand Down