From d91f81ff4a9dc86ab019666fdfdd1158a2320acd Mon Sep 17 00:00:00 2001 From: Kevin Dalton Date: Thu, 19 Dec 2024 09:46:13 -0500 Subject: [PATCH] update syntax to avoid deprecation --- reciprocalspaceship/io/precognition.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reciprocalspaceship/io/precognition.py b/reciprocalspaceship/io/precognition.py index 3ad146ce..5eee47e3 100644 --- a/reciprocalspaceship/io/precognition.py +++ b/reciprocalspaceship/io/precognition.py @@ -31,7 +31,7 @@ def read_precognition(hklfile, spacegroup=None, cell=None, logfile=None): F = pd.read_csv( hklfile, header=None, - delim_whitespace=True, + sep="\\s+", names=["H", "K", "L", "F(+)", "SigF(+)", "F(-)", "SigF(-)"], usecols=usecols, ) @@ -49,7 +49,7 @@ def read_precognition(hklfile, spacegroup=None, cell=None, logfile=None): F = pd.read_csv( hklfile, header=None, - delim_whitespace=True, + sep="\\s+", names=[ "H", "K",