Skip to content

Add data-output tests for plotPCA and plotFingerprint#1435

Merged
adRn-s merged 1 commit into
4.0.0from
add-plot-data-tests
Jul 9, 2026
Merged

Add data-output tests for plotPCA and plotFingerprint#1435
adRn-s merged 1 commit into
4.0.0from
add-plot-data-tests

Conversation

@adRn-s

@adRn-s adRn-s commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to the test-salvage work. Both existing plot tests only compared the rendered PNG; this adds numeric assertions on the tabular outputs, closing the last two coverage gaps surfaced while triaging the stalled #1372 / #1374 tests.

plotPCA (test_plotPCA.py)

  • Verifies --outFileNameData. The existing test_plotPCA_default already passed this flag, but the assertion on it was commented out. New test asserts the eigenvalue column and table shape — deliberately sign-independent, since PCA eigenvector signs can flip across BLAS/platforms (this suite runs on Linux + OSX + aarch64).

plotFingerprint (test_plotFingerprint.py)

  • Verifies --outQualityMetrics together with --JSDsample (AUC per sample and JS Distance). Neither the quality-metrics table nor the JSD computation was tested anywhere.

Expected values derived by running the current tools. Verified locally: pixi run pytest on both files → 4 passed (2 existing + 2 new).

🤖 Generated with Claude Code

Both existing tests only compared the rendered PNG. Adds numeric
assertions on the tabular outputs, filling gaps found while triaging
the stalled #1372/#1374 tests:
- plotPCA: verify --outFileNameData (the existing test passed this flag
  but the check was commented out). Asserts the sign-independent
  eigenvalue column and table shape.
- plotFingerprint: verify --outQualityMetrics + --JSDsample (AUC and
  JS Distance), neither previously tested anywhere.

Expected values derived by running the current tools; verified with
`pixi run pytest`.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@adRn-s adRn-s merged commit b4dbdfe into 4.0.0 Jul 9, 2026
41 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