Skip to content

Conversation

@calvinp0
Copy link
Member

@calvinp0 calvinp0 commented Jan 7, 2026

ORCA, when used to parse for neg freq in a TS, would not pick up the negative freq. It would throw it away due to the line of code saying freq > 0.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in the ORCA frequency parser where negative frequencies (imaginary modes) in transition states were incorrectly filtered out. The parser now correctly handles both positive and negative frequencies while still excluding exact zeros (translations/rotations).

Key changes:

  • Modified the frequency filtering logic from freq > 0 to abs(freq) > 0.0 to preserve negative frequencies
  • Added a test case with ORCA transition state output containing a negative frequency
  • Included comprehensive test data file with a transition state calculation showing -1271.62 cm⁻¹ imaginary mode

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
arc/parser/adapters/orca.py Fixed frequency filtering logic to preserve negative frequencies while excluding exact zeros
arc/parser/parser_test.py Added test case for ORCA transition state with negative frequency
arc/testing/freq/orca_neg_freq_ts.out New test data file containing ORCA TS calculation with imaginary mode at -1271.62 cm⁻¹

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@kfir4444 kfir4444 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing job! approved.

@kfir4444 kfir4444 merged commit 12e268a into main Jan 11, 2026
6 checks passed
@kfir4444 kfir4444 deleted the orca_parse_negfrq branch January 11, 2026 14:04
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.

3 participants