From b9d6a9a615657d9fa5e837f9f79c8b18115ed344 Mon Sep 17 00:00:00 2001 From: Antoine CARME Date: Thu, 9 Mar 2023 01:40:44 +0100 Subject: [PATCH] Python 3.11 support #227. Warning hunt (WIP). --- pyaf/TS/Perf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyaf/TS/Perf.py b/pyaf/TS/Perf.py index f6dce3a90..9a31a8650 100644 --- a/pyaf/TS/Perf.py +++ b/pyaf/TS/Perf.py @@ -127,6 +127,10 @@ def compute_LnQ(self, signal , estimator): return self.mLnQ def compute_KS_Kendall_MWU_AUC(self, signal , estimator): + min_signal , max_signal = signal.min(), signal.max() + self.mKS, self.mMWU, self.mAUC = 0.0, 0.0, 0.0 + if((max_signal - min_signal) < 0.001): + return from scipy.stats import mannwhitneyu, kendalltau, kstest lKSTest = kstest(signal, estimator, method='asymp') self.mKS = lKSTest.statistic