Skip to content

fix(cli): idtracker.ai options in add, add --allow-pickle, validate probes sessions - #151

Merged
mbel-tech merged 4 commits into
mainfrom
fatina-del-codice/idtrackerai-cli-fixes
Oct 11, 2026
Merged

mbel-tech merged 4 commits into
mainfrom
fatina-del-codice/idtrackerai-cli-fixes

Conversation

@mbel-tech

Copy link
Copy Markdown
Owner

Summary

Follow-up to #146 from running the public idtracker.ai datasets through the CLI (handoff: docs/tracker-formats/HANDOFF_idtrackerai_real_dataset_run.md).

  • add --option fps/width_px/height_px now works for idtracker.ai. The reader's Detection carried no parameters, so the CLI and the confirm dialog rejected the options fix(idtrackerai): CSV without time column, probability shape check, video-info options #146 added (READER_OPTION_INVALID ... is not an option of this reader).
  • add --allow-pickle sets security.allow_pickle_trajectories on the project and warns that the file executes code on load. Without the flag nothing changes.
  • validate probes every session (Engine.session_read_issues) and reports what run would fail on (missing video size or frame rate, pickle without consent), also when no metric is selected. The GUI pre-flight is unchanged.
  • Adds the handoff (results matrix, ranked remaining work: items 4-8) and a changelog entry.

Verified end to end with only documented flags (no hand-edited project file) on the movement-data h5, the synthetic no-fps CSV and the MoveR pickled dict: new, add, validate, run all exit 0.

Test plan

  • tests/test_cli/test_idtrackerai_bare_export.py (7 new)
  • tests/test_cli tests/test_readers tests/test_scan tests/test_docs_tracker_formats.py: 940 passed (5 entry-point tests deselected, they need an installed package)
  • Full suite before the rebase onto current main: only pre-existing failures (two 3-D serial/parallel tests and test_fusion/test_agreement.py::test_timing_smoke_100k_frames, a 3 s timing limit; all fail on a clean origin/main too)
  • ruff clean

🤖 Generated with Claude Code

mbel-tech and others added 3 commits October 11, 2026 12:50
…tasets through the CLI

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s sessions

- reader: discover() and the trajectories/ subfolder hint pass the reader's parameters,
  so `add --option fps/width_px/height_px` and the confirm dialog accept them
- add: --allow-pickle sets security.allow_pickle_trajectories on the project (with a warning)
- validate: also probes every session (Engine.session_read_issues) and reports what run would
  fail on: missing video size/fps, pickle without consent
- tests: tests/test_cli/test_idtrackerai_bare_export.py; handoff and changelog updated

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mbel-tech
mbel-tech enabled auto-merge (squash) October 11, 2026 10:53
…ew, add, validate, run)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mbel-tech
mbel-tech merged commit 9c64fed into main Oct 11, 2026
7 checks passed
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