Skip to content

test: Add end-to-end Seminario validation for ethane#81

Merged
ericchansen merged 1 commit intomasterfrom
test/seminario-ethane-validation
Mar 20, 2026
Merged

test: Add end-to-end Seminario validation for ethane#81
ericchansen merged 1 commit intomasterfrom
test/seminario-ethane-validation

Conversation

@ericchansen
Copy link
Copy Markdown
Owner

Summary

Add 34 end-to-end Seminario validation tests using ethane .fchk Hessians (GS staggered + TS eclipsed, B3LYP/6-31G(d)).

Closes #73

Changes

New files

  • test/integration/test_ethane_seminario.py -- 34 tests across 7 test classes
  • test/fixtures/seminario_parity/ethane_reference.json -- reference force constants and equilibria

Test coverage

Class Tests What it validates
TestFchkParsing 6 Atom count, symbols, Hessian shape/symmetry
TestBondDetection 5 Bond/angle count, C-C and C-H connectivity
TestIndividualBonds 3 Per-bond Seminario projections vs fixture
TestIndividualAngles 2 Per-angle Seminario projections vs fixture
TestFullPipeline 8 Averaged params, ForceField type, torsion zeroing
TestGSvsTSComparison 9 Chemical sanity: TS C-C longer/weaker, reasonable ranges
TestMultiMoleculeAveraging 1 GS+TS averaging produces intermediate values

Testing

All 225 tests pass (34 new + 191 existing), ruff clean.

34 tests covering the full .fchk -> Hessian -> Seminario -> ForceField
pipeline using ethane GS (staggered) and TS (eclipsed) at B3LYP/6-31G(d).

Tests cover:
- .fchk parsing (atom count, Hessian shape, symmetry)
- Bond/angle detection (connectivity, element counts)
- Individual Seminario projections against reference fixture
- Full pipeline averaged parameters against reference
- GS vs TS chemical sanity (TS C-C longer/weaker, reasonable ranges)
- Multi-molecule averaging (GS+TS combined)

Closes #73

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ericchansen ericchansen merged commit a49ae93 into master Mar 20, 2026
5 checks passed
@ericchansen ericchansen deleted the test/seminario-ethane-validation branch March 20, 2026 15:27
ericchansen added a commit that referenced this pull request Mar 20, 2026
- Validate method param in invert_ts_curvature; raise ValueError for
  unsupported values instead of silently falling through to Method C
- Remove bogus element-wise >= 0 check on Hessian matrix (off-diagonal
  coupling constants are routinely negative; this fired false warnings)
- Change detect_problematic_params/lock_params to use canonical param
  keys instead of fragile list indices
- Clarify lock_params docstring: it copies values but does not freeze
  params during optimization (honest about current limitation)
- Fix docstring units: Cartesian Hessian eigenvalues, not mass-weighted
- Use natural sort for Jaguar .in file glob in parity tests
- Remove unnecessary from __future__ import annotations in test files
- Add literature-validated force constant range tests for ethane

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ericchansen added a commit that referenced this pull request Mar 20, 2026
- Validate method param in invert_ts_curvature; raise ValueError for
  unsupported values instead of silently falling through to Method C
- Remove bogus element-wise >= 0 check on Hessian matrix (off-diagonal
  coupling constants are routinely negative; this fired false warnings)
- Change detect_problematic_params/lock_params to use canonical param
  keys instead of fragile list indices
- Clarify lock_params docstring: it copies values but does not freeze
  params during optimization (honest about current limitation)
- Fix docstring units: Cartesian Hessian eigenvalues, not mass-weighted
- Use natural sort for Jaguar .in file glob in parity tests
- Remove unnecessary from __future__ import annotations in test files
- Add literature-validated force constant range tests for ethane

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

test: End-to-end Seminario validation using ethane .fchk Hessians

1 participant