fix(orca): implement NMD parsing, guard trsh against None - #1026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1026 +/- ##
==========================================
- Coverage 65.55% 65.55% -0.01%
==========================================
Files 120 120
Lines 40468 40516 +48
Branches 10430 10441 +11
==========================================
+ Hits 26529 26559 +30
- Misses 10934 10952 +18
Partials 3005 3005
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Mia1Gohary
force-pushed
the
orca-nmd-fix
branch
3 times, most recently
from
August 26, 2026 15:25
a77d920 to
14dca8a
Compare
calvinp0
reviewed
Aug 26, 2026
calvinp0
reviewed
Aug 26, 2026
calvinp0
requested changes
Aug 26, 2026
Member
|
It's looking good @Mia1Gohary , just two comments for fixing! |
Orca's parse_normal_mode_displacement() was a stub returning (None, None). trsh_negative_freq() then called len(None) on any species with a genuine imaginary frequency, crashing the whole ARC process instead of nudging the geometry and re-optimizing. Implement real parsing of Orca's VIBRATIONAL FREQUENCIES / NORMAL MODES blocks, and add a defensive None check in trsh.py so any adapter lacking this capability degrades gracefully instead of crashing. Validated against CR_1's r1 freq job on zeus: correctly identified and parsed the -33.01 cm^-1 imaginary mode; live run confirmed freq troubleshooting completes (freq: True) where it previously crashed.
Reuse the Orca frequency parser when reading normal mode displacements, while retaining zero. Move the n-cetane checks into a dedicated test and verify that frequencies remain aligned with Cartesian displacement vectors.
calvinp0
requested changes
Aug 31, 2026
Mia1Gohary
force-pushed
the
orca-nmd-fix
branch
from
September 1, 2026 13:24
b8eb670 to
ff14a04
Compare
calvinp0
reviewed
Sep 1, 2026
calvinp0
reviewed
Sep 1, 2026
calvinp0
reviewed
Sep 1, 2026
calvinp0
requested changes
Sep 1, 2026
Return no normal modes when an Orca output ends inside the normal-mode matrix or contains an incomplete row. Add regression coverage for truncation, successful Orca parsing and troubleshooting, and supported Orca outputs without a normal-mode block.
Mia1Gohary
force-pushed
the
orca-nmd-fix
branch
from
September 1, 2026 13:59
ff14a04 to
2aad076
Compare
calvinp0
approved these changes
Sep 1, 2026
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.
Orca's parse_normal_mode_displacement() was a stub returning (None, None). trsh_negative_freq() then called len(None) on any species with a genuine imaginary frequency, crashing the whole ARC process instead of nudging the geometry and re-optimizing.
Implement real parsing of Orca's VIBRATIONAL FREQUENCIES / NORMAL MODES blocks, and add a defensive None check in trsh.py so any adapter lacking this capability degrades gracefully instead of crashing.
Validated against CR_1's r1 freq job on zeus: correctly identified and parsed the -33.01 cm^-1 imaginary mode; live run confirmed freq troubleshooting completes (freq: True) where it previously crashed.