Skip to content

fix(particlefilter): do not pause between steps unless animating - #748

Merged
petercorke merged 1 commit into
mainfrom
bug/particlefilter-run-pauses
Oct 14, 2026
Merged

petercorke merged 1 commit into
mainfrom
bug/particlefilter-run-pauses

Conversation

@petercorke

Copy link
Copy Markdown
Owner

ParticleFilter.run() called plt.pause(0.2) on every step regardless of animate, so a non-animated run(T=10) took 24 s of wall time (100 steps). It now pauses only when animating, and the unused import time is gone. A test asserts that plt.pause is not called in a non-animated run.

Stacked on #747. Base this PR on main once #747 has merged.

🤖 Generated with Claude Code

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

run() called plt.pause(0.2) on every step regardless of animate, so a
non-animated run(T=10) took 24 s of wall time.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@petercorke
petercorke force-pushed the bug/particlefilter-run-pauses branch from 91da43d to fd03076 Compare October 13, 2026 23:44
@petercorke
petercorke changed the base branch from test/mobile-estimator-regressions to main October 13, 2026 23:44
@petercorke petercorke closed this Oct 14, 2026
@petercorke petercorke reopened this Oct 14, 2026
@petercorke
petercorke merged commit ea7b4d6 into main Oct 14, 2026
25 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 14, 2026
@codecov

codecov Bot commented Oct 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 0.00%. Comparing base (b2093fc) to head (fd03076).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/roboticstoolbox/mobile/ParticleFilter.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #748   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files        143     143           
  Lines      14271   14271           
=====================================
  Misses     14271   14271           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant