Skip to content

Commit

Permalink
Replace delim_whitespace with `sep="\s+" to resolve deprecation war…
Browse files Browse the repository at this point in the history
…ning
  • Loading branch information
smcolby committed Dec 27, 2024
1 parent 08301d2 commit 2bbd527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion isicle/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def save_mfj(path, geom):
StringIO(geom.to_xyzblock()),
skiprows=2,
header=None,
delim_whitespace=True,
sep="\s+",
names=["Atom", "x", "y", "z"],
)

Expand Down
2 changes: 1 addition & 1 deletion isicle/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __repr__(self):

def atomic_masses():
path = resources.files("isicle") / "resources/atomic_masses.tsv"
return pd.read_csv(path, delim_whitespace=True)
return pd.read_csv(path, sep="\s+")


def tinker_lookup():
Expand Down

0 comments on commit 2bbd527

Please sign in to comment.