Skip to content

Commit

Permalink
fix file read error
Browse files Browse the repository at this point in the history
  • Loading branch information
corinwagen committed Oct 8, 2021
1 parent 91cb167 commit 85cb8d0
Show file tree
Hide file tree
Showing 3 changed files with 157,314 additions and 4 deletions.
4 changes: 3 additions & 1 deletion cctk/parse_gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ def read_file_fast(file_text, filename, link1idx, max_len=20000, extended_opt_in

# special geometry handling :/
if idx == 3:
if len(block_matches[3]) == len(word_matches[0]):
# ccw 10.8.2021 - changed "==" to "<=" to prevent issues where # geoms would get stuck.
# can't remember quite why this was needed. hopefully it is ok this way. tests pass.
if len(block_matches[3]) <= len(word_matches[0]):
block_matches[3].append(match)
else:
block_matches[3][-1] = match
Expand Down

0 comments on commit 85cb8d0

Please sign in to comment.