fix(orca): implement NMD parsing, guard trsh against None - #1026
Open
Mia1Gohary wants to merge 3 commits into
Open
fix(orca): implement NMD parsing, guard trsh against None#1026Mia1Gohary wants to merge 3 commits into
Mia1Gohary wants to merge 3 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1026 +/- ##
==========================================
+ Coverage 63.25% 64.54% +1.28%
==========================================
Files 114 119 +5
Lines 38274 39886 +1612
Branches 10013 10326 +313
==========================================
+ Hits 24212 25744 +1532
- Misses 11158 11160 +2
- Partials 2904 2982 +78
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
2 times, most recently
from
August 26, 2026 15:13
778878f to
a77d920
Compare
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.
Mia1Gohary
force-pushed
the
orca-nmd-fix
branch
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! |
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.
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.