Skip to content

Commit 3252b0c

Browse files
authored
Bug fix
1 parent 064b558 commit 3252b0c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

popt/loop/ensemble.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ def calc_ensemble_weights(self, x, *args, **kwargs):
487487
else:
488488
self.particles[l][:, :ml_ne_surv] = self.particles[l][:, self.resample_index[l]]
489489
self.particles[l][:, ml_ne_surv:] = deepcopy(state_ens[:, start_index:start_index + ml_ne_new])
490-
self.particle_values[l][:, :ml_ne_surv] = self.particle_values[l][self.resample_index[l]]
491-
self.particle_values[l][:, ml_ne_surv:] = deepcopy(self.ens_func_values[l])
490+
self.particle_values[l][:ml_ne_surv] = self.particle_values[l][self.resample_index[l]]
491+
self.particle_values[l][ml_ne_surv:] = deepcopy(self.ens_func_values[l])
492492

493493
# Calculate the weights and ensemble sensitivity matrix
494494
weights = np.zeros(ml_ne)

0 commit comments

Comments
 (0)