From b11b8e68f00c54422613ca930675f941657df51a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=AB=20Bullard?= <68021211+chloeann95@users.noreply.github.com> Date: Mon, 6 Mar 2023 13:09:42 -0500 Subject: [PATCH] fixed deprecations for python 3.11 --- diffpy/pdfmorph/refine.py | 2 +- diffpy/pdfmorph/tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/diffpy/pdfmorph/refine.py b/diffpy/pdfmorph/refine.py index 26454ea2..a8547f20 100644 --- a/diffpy/pdfmorph/refine.py +++ b/diffpy/pdfmorph/refine.py @@ -17,7 +17,7 @@ """ from scipy.optimize import leastsq -from scipy.stats.stats import pearsonr +from scipy.stats import pearsonr from numpy import exp, dot, ones_like, concatenate diff --git a/diffpy/pdfmorph/tools.py b/diffpy/pdfmorph/tools.py index 0daa7479..b597ab6a 100644 --- a/diffpy/pdfmorph/tools.py +++ b/diffpy/pdfmorph/tools.py @@ -89,7 +89,7 @@ def getRw(chain): def getPearson(chain): - from scipy.stats.stats import pearsonr + from scipy.stats import pearsonr xobj, yobj, xref, yref = chain.xyallout pcc, pval = pearsonr(yobj, yref)