From 2bbd52740038b20d199030aa9ddc19d9e305de83 Mon Sep 17 00:00:00 2001 From: Sean Colby Date: Fri, 27 Dec 2024 15:49:15 -0800 Subject: [PATCH] Replace `delim_whitespace` with `sep="\s+" to resolve deprecation warning --- isicle/io.py | 2 +- isicle/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/isicle/io.py b/isicle/io.py index c7ab4d7..1f183cc 100644 --- a/isicle/io.py +++ b/isicle/io.py @@ -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"], ) diff --git a/isicle/utils.py b/isicle/utils.py index 5c06339..2c3be6c 100644 --- a/isicle/utils.py +++ b/isicle/utils.py @@ -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():