Skip to content

fix(examples): repair ik_speed.py after fknm/frne refactor and API renames#561

Open
petercorke wants to merge 1 commit into
mainfrom
fix/ik-speed-example
Open

fix(examples): repair ik_speed.py after fknm/frne refactor and API renames#561
petercorke wants to merge 1 commit into
mainfrom
fix/ik-speed-example

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Summary

  • examples/ik_speed.py had gone stale: import fknm no longer resolves since the fknm/frne refactor (merged to main 2026-07-03), and the IK solver calls used a since-renamed API (ik_lm_chan/ik_nr/ik_gnik_LM(method=...)/ik_NR/ik_GN, with renamed kwargs).
  • Rewrote against the current API, dropped stale unused imports, added modern type hints.
  • Factored the cpu_info() helper (added earlier for rne_speed.py) out into a shared examples/_cpu_info.py, now that ik_speed.py is a second call site.
  • Updated tech-debt.md's entry to reflect the fix.

Test plan

  • python examples/ik_speed.py runs end-to-end, prints a valid timing table for NR/GN/LM(chan/wampler/sugihara)
  • python examples/rne_speed.py still runs after the shared _cpu_info extraction

🤖 Generated with Claude Code

…names

ik_speed.py predated both the fknm/frne module move (import fknm -> a
module path that no longer exists) and the IK solver API rename
(ik_lm_chan/ik_nr/ik_gn -> ik_LM(method=...)/ik_NR/ik_GN with renamed
kwargs), so it hadn't actually run in some time. Rewrite against the
current API, drop stale unused imports, and add modern type hints.

Port cpu_info() (added earlier for rne_speed.py) into a shared
examples/_cpu_info.py now that ik_speed.py is a second call site.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (0bb9645) to head (227f854).

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #561   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files        142     142           
  Lines      13788   13788           
=====================================
  Misses     13788   13788           

☔ 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