Skip to content

Commit 3ae0fb2

Browse files
committed
Fixed pf when noise is None
1 parent 9decf66 commit 3ae0fb2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pyrecest/filters/abstract_particle_filter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ def predict_nonlinear(
4141
d_f_applied = self.filter_state.d
4242

4343
n_particles = self.filter_state.w.shape[0]
44-
if noise_distribution is not None:
44+
if noise_distribution is None:
45+
updated_particles = d_f_applied
46+
else:
4547
# Cannot easily use vmap because control flow depends on data for some lower level function
4648
updated_particles = []
4749
for i in range(n_particles):

0 commit comments

Comments
 (0)