Skip to content

Commit d7c9133

Browse files
committed
Fixed a bug in combine_weights ... Ughhhhhh
1 parent f8a8f1d commit d7c9133

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ensemble_md/ensemble_EXE.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,10 +1268,9 @@ def combine_weights(self, weights, weights_err=None, print_weights=True):
12681268
weights_modified = np.zeros_like(weights)
12691269
for i in range(self.n_sim):
12701270
if self.equil[i] == -1: # unequilibrated
1271-
weights_modified[i] = list(g_vec[i: i + self.n_sub] - g_vec[i: i + self.n_sub][0])
1271+
weights_modified[i] = list(g_vec[i * self.s: i * self.s + self.n_sub] - g_vec[i * self.s: i * self.s + self.n_sub][0]) # noqa: E501
12721272
else:
12731273
weights_modified[i] = self.equilibrated_weights[i]
1274-
weights_modified = np.round(weights_modified, decimals=5).tolist()
12751274

12761275
if print_weights is True:
12771276
w = np.round(weights_modified, decimals=3).tolist() # just for printing

0 commit comments

Comments
 (0)