Skip to content

Commit 21c9ae2

Browse files
authored
Merge pull request #1634 from FlorianPfaff/pf_fix
Fixed pf when noise is None
2 parents 4a5695b + 3ae0fb2 commit 21c9ae2

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)