Skip to content

Commit

Permalink
Merge pull request #116 from molssi-seamm/dev
Browse files Browse the repository at this point in the history
Fixing problems parsing AUX file due to bug in MOPAC.
  • Loading branch information
seamm authored Jun 5, 2023
2 parents 8405c8f + 45aabd9 commit 85ffa3a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
=======
History
=======
2023.6.5 -- Bugfix working around MOPAC problem
* MOPAC is not consistent about putting end of file and end of program markers in the
AUX file. This caused carashed in SEAMM, which this fixes until MOPAC can be
corrected.

2023.4.24 -- Bugfixes for Lewis structure
* Correctly handle periodic systems in Lewis structure.
* Fixed and issue with the Lewis structure GUI not displaying all the widgets.
Expand Down
2 changes: 1 addition & 1 deletion mopac_step/mopac.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def analyze(self, indent="", lines=[], n_calculations=None):
lineno = 0
section = 0
for line in lines_aux:
if "END OF MOPAC FILE" in line:
if "END OF MOPAC FILE" in line or "END OF MOPAC PROGRAM" in line:
self.logger.debug("\nAUX file section {}".format(section))
self.logger.debug("------------------")

Expand Down
2 changes: 2 additions & 0 deletions mopac_step/mopac_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ def parse_aux(self, lines):
line = lines[lineno].strip()
if "END OF MOPAC PROGRAM" in line:
continue
if "END OF MOPAC FILE" in line:
continue
if line[0] == "#":
continue
if "=" not in line:
Expand Down

0 comments on commit 85ffa3a

Please sign in to comment.