neuropose/tests/unit
Levi Neuwirth 87461a17d0 add joint-angle representation and nan_policy to DTW
representation: Literal["coords", "angles"] on dtw_all and
dtw_per_joint. "coords" preserves the 0.1 behaviour; "angles" runs
extract_joint_angles on caller-supplied angle_triplets before DTW,
giving translation-, rotation-, and scale-invariant distances that
are directly interpretable as clinical joint-range comparisons. Under
dtw_per_joint the "unit" becomes one angle column per triplet.

nan_policy: Literal["propagate", "interpolate", "drop"] on all three
entry points. "propagate" (default) lets NaN hit fastdtw, which raises
ValueError via numpy.asarray_chkfinite — the safest default because it
surfaces degenerate-vector problems rather than silently corrupting a
distance. "interpolate" runs 1D linear interpolation per feature
column; "drop" removes NaN frames before DTW.

dtw_relation stays a standalone convenience entry point. Paper C's
typical call becomes dtw_all(representation="angles",
align="procrustes_per_sequence"); see TECHNICAL.md Phase 0.
2026-04-18 18:02:13 -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_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 apply ruff format to recent commits 2026-04-18 17:49:44 -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