-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add LogError to raise LogError for unconverged gaussian log file #1766
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1766 +/- ##
=======================================
Coverage 42.74% 42.74%
=======================================
Files 81 81
Lines 21078 21078
Branches 5491 5491
=======================================
Hits 9010 9010
+ Misses 11067 11054 -13
- Partials 1001 1014 +13
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this fix, @hwpang !
Please add a unit test using an errored Gaussian log file.
While at it, let's raise a similar error in QChem and Molpro Logs. You can find some example crashed jobs here.
(@dranasinghe, could you add a similar line to Orca?)
arkane/gaussian.py
Outdated
@@ -247,6 +247,9 @@ def load_conformer(self, symmetry=None, spin_multiplicity=0, optical_isomers=Non | |||
# Read the next line in the file | |||
line = f.readline() | |||
|
|||
if 'Error termination' in line: | |||
raise LogError('Gaussian log file did not converge.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the text to f'The Gaussian job in {self.path} did not converge.'
@hwpang, we'll soon modify log files in Arkane, would you like to merge this PR soon to avoid conflicts? |
Sorry for the slow response. I was really busy last week. I will address the above comments before this Friday. |
I've modified the error message and added a unit test for it. |
Great, thanks! |
d22604d
to
f1c4f7b
Compare
I've rebased and squashed the fix commit. Thanks for reviewing! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It all looks good, thanks. Just a minor request: Could you squash the test commit with the commit that added the unconverged Gaussian log file?
f1c4f7b
to
d1310dc
Compare
These two commits were squashed as requested. Thanks! |
Perfect! Rebase again? |
d1310dc
to
919d434
Compare
I rebased this branch. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Motivation or Problem
As suggested in #1739
Description of Changes
Add LogError to raise LogError for unconverged gaussian log file
testing
didn't test