neuropose/tests/unit
Levi Neuwirth dc48988450 add run_analysis pipeline executor
run_analysis(config) loads the predictions files named in the config,
applies the configured segmentation, dispatches to the selected
analysis kind (DTW, stats, or none), and emits a fully populated
AnalysisReport. The report's Provenance inherits the inference-time
envelope from the primary input with analysis_config stamped in, so
the output is self-describing even if the source YAML is later lost.

For DTW runs with segmentation, segments are paired one-to-one by
index across primary and reference, truncating to min of the two
counts. Bilateral segmentations emit per-side distances under
"left_heel_strikes[i]" / "right_heel_strikes[i]" labels. dtw_per_joint
stores its full per-unit breakdown in the per_joint_distances field
and reports the sum as the representative scalar distance.

Also ships load_config (YAML), save_report (atomic JSON write), and
load_report (rehydrate via the migration chain) so the executor can
be driven end-to-end from Python without the CLI. The CLI wiring
lands in the next commit.
2026-04-22 11:25:02 -04:00
..
test_analyzer_dtw.py add joint-angle representation and nan_policy to DTW 2026-04-18 18:02:13 -04:00
test_analyzer_features.py add Procrustes alignment to analyzer 2026-04-18 17:11:53 -04:00
test_analyzer_pipeline.py add run_analysis pipeline executor 2026-04-22 11:25:02 -04:00
test_analyzer_segment.py add gait-cycle segmentation to analyzer 2026-04-18 17:50:21 -04:00
test_benchmark.py pin tf to ensure compatability with tensorflow-metal 2026-04-16 15:26:55 -04:00
test_cli.py add Provenance subobject and LoadedModel 2026-04-18 17:10:52 -04:00
test_config.py linting and formatting 2026-04-14 13:50:11 -04:00
test_estimator.py add Provenance subobject and LoadedModel 2026-04-18 17:10:52 -04:00
test_ingest.py tooling 2026-04-15 11:41:27 -04:00
test_interfacer.py tooling 2026-04-15 11:41:27 -04:00
test_io.py add Provenance subobject and LoadedModel 2026-04-18 17:10:52 -04:00
test_migrations.py add AnalysisConfig and AnalysisReport schemas 2026-04-22 11:13:36 -04:00
test_monitor.py tooling 2026-04-15 11:41:27 -04:00
test_reset.py apply ruff format to recent commits 2026-04-18 17:49:44 -04:00
test_visualize.py linting and formatting 2026-04-14 13:50:11 -04:00