Add LogError to raise LogError for unconverged gaussian log file#1766
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.
|
alongd
left a comment
There was a problem hiding this comment.
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
| line = f.readline() | ||
|
|
||
| if 'Error termination' in line: | ||
| raise LogError('Gaussian log file did not converge.') |
There was a problem hiding this comment.
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! |
alongd
left a comment
There was a problem hiding this comment.
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! |
Motivation or Problem
As suggested in #1739
Description of Changes
Add LogError to raise LogError for unconverged gaussian log file
testing
didn't test