From 3cf98eb4e22a5c317e495e078ea3bd4f5e72f2fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Pulido?= <2949729+ijpulidos@users.noreply.github.com> Date: Thu, 1 Jun 2023 18:17:10 -0400 Subject: [PATCH] manually casting objects to np arrays when reading checkpoint (#701) --- openmmtools/multistate/multistatesampler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openmmtools/multistate/multistatesampler.py b/openmmtools/multistate/multistatesampler.py index c32129be..31d49ffa 100644 --- a/openmmtools/multistate/multistatesampler.py +++ b/openmmtools/multistate/multistatesampler.py @@ -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