Skip to content

Commit 4fa3f4f

Browse files
committed
BUG: workaround for bug in pd.read_table
delim_whitespace=True does not work pandas-dev/pandas#36381
1 parent b643810 commit 4fa3f4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chemcoord/cartesian_coordinates/_cartesian_class_io.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def read_xyz(cls, buf, start_index=0, get_bonds=True,
161161
"""
162162
frame = pd.read_table(buf, skiprows=2, comment='#',
163163
nrows=nrows,
164-
delim_whitespace=True,
164+
sep='\s+',
165165
names=['atom', 'x', 'y', 'z'], engine=engine)
166166

167167
remove_digits = partial(re.sub, r'[0-9]+', '')

0 commit comments

Comments
 (0)