test: Add end-to-end Seminario validation for ethane#81
Merged
ericchansen merged 1 commit intomasterfrom Mar 20, 2026
Merged
Conversation
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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add 34 end-to-end Seminario validation tests using ethane
.fchkHessians (GS staggered + TS eclipsed, B3LYP/6-31G(d)).Closes #73
Changes
New files
test/integration/test_ethane_seminario.py-- 34 tests across 7 test classestest/fixtures/seminario_parity/ethane_reference.json-- reference force constants and equilibriaTest coverage
TestFchkParsingTestBondDetectionTestIndividualBondsTestIndividualAnglesTestFullPipelineTestGSvsTSComparisonTestMultiMoleculeAveragingTesting
All 225 tests pass (34 new + 191 existing), ruff clean.