Skip to content

Commit

Permalink
Merge pull request #9 from aandi/patch-1
Browse files Browse the repository at this point in the history
add support for xyz files with scientific notation
  • Loading branch information
charnley committed Oct 14, 2015
2 parents d65aae9 + 5cad920 commit e5a9bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calculate_rmsd
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def get_coordinates(filename, ignore_hydrogens=False):
break

atom = re.findall(r'[a-zA-Z]+', line)[0]
numbers = re.findall(r'[-]?\d+\.\d*', line)
numbers = re.findall(r'[-]?\d+\.\d*(?:[Ee][-\+]\d+)?', line)
numbers = [float(number) for number in numbers]

# ignore hydrogens
Expand Down

0 comments on commit e5a9bc5

Please sign in to comment.