Skip to content

Commit

Permalink
parser: Fixed elif statement in parse_normal_mode_displacement - chan…
Browse files Browse the repository at this point in the history
…ged bool argument
  • Loading branch information
calvinp0 committed Jul 31, 2023
1 parent 270777f commit a3ff0fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ timer.dat

# .vscode
.vscode

# files created via testing
nul
run.out
4 changes: 2 additions & 2 deletions arc/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def parse_frequencies(path: str,

def parse_normal_mode_displacement(path: str,
software: Optional[str] = None,
raise_error: bool = True, # TODO: Why is this true? What is it supposed to do?
raise_error: bool = False, # TODO: Why is this true? What is it supposed to do?
) -> Tuple[np.ndarray, np.ndarray]:
"""
Parse frequencies and normal mode displacement.
Expand Down Expand Up @@ -210,7 +210,7 @@ def parse_normal_mode_displacement(path: str,
parse_normal_mode_disp = True
elif parse and not line or '-------------------' in line:
parse = False
if software == 'qchem':
elif software == 'qchem':
number_freqs_per_line = 3
parse, parse_normal_mode_disp = False, False

Check warning on line 215 in arc/parser.py

View check run for this annotation

Codecov / codecov/patch

arc/parser.py#L214-L215

Added lines #L214 - L215 were not covered by tests
for line in lines + ['']:
Expand Down

0 comments on commit a3ff0fb

Please sign in to comment.