Skip to content

Commit

Permalink
added a TODO for the xyz parsing bug #102
Browse files Browse the repository at this point in the history
  • Loading branch information
mcocdawc committed Jan 7, 2025
1 parent c56c6ed commit b20af58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/chemcoord/cartesian_coordinates/_cartesian_class_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def read_xyz(cls, buf, start_index=0, get_bonds=True,
nrows=nrows, sep=r'\s+',
names=['atom', 'x', 'y', 'z'], engine=engine)

# TODO explicitly cast to float
remove_digits = partial(re.sub, r'[0-9]+', '')
frame['atom'] = frame['atom'].apply(
lambda x: remove_digits(x).capitalize())
Expand Down

0 comments on commit b20af58

Please sign in to comment.