Skip to content

Commit

Permalink
force block debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ekwan committed Jul 29, 2021
1 parent 841998c commit 2a435b0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cctk/parse_gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,14 @@ def extract_parameter(lines, position, cast_to_float=True):

def parse_forces(force_block):
forces = []
for line in force_block[0].split("\n")[2:]:
try:
split_block = force_block[0].split("\n")[2:]
except Exception as e:
print(e)
print("------force block-------")
print(force_block)
raise e
for line in split_block:
fields = re.split(" +", line)
fields = list(filter(None, fields))

Expand Down

0 comments on commit 2a435b0

Please sign in to comment.