Skip to content

Commit 297b3e5

Browse files
committed
Merge branch 'bugfix-resampler-weight-shape' into upgrade-vectorized-risk
2 parents 29b72ea + 2755838 commit 297b3e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qinfer/resamplers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,6 @@ def __call__(self, model, particle_dist,
377377
# particles represent the information that used to be stored in the
378378
# weights. This is done by SMCUpdater, and so we simply need to return
379379
# the new locations here.
380-
new_weights = np.ones((w.shape[0],)) / w.shape[0]
380+
new_weights = np.ones((n_particles,)) / n_particles
381381
return ParticleDistribution(particle_locations=new_locs,
382382
particle_weights=new_weights)

0 commit comments

Comments
 (0)