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 Mar 18, 2024
1 parent e9954a5 commit 123279e
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 @@ -53,6 +53,10 @@ timer.dat
# .vscode
.vscode

# files created via testing
nul
run.out

# .trunk folder
.trunk

Expand Down
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
for line in lines + ['']:
Expand Down

0 comments on commit 123279e

Please sign in to comment.