From 1e1e9c485394d64c11f2647ae956f64ba59546f8 Mon Sep 17 00:00:00 2001 From: Vanya Belyaev Date: Tue, 1 Oct 2024 10:34:40 +0200 Subject: [PATCH] fix ? --- ostap/stats/gof_np.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ostap/stats/gof_np.py b/ostap/stats/gof_np.py index 2cdb6e84..74749f37 100644 --- a/ostap/stats/gof_np.py +++ b/ostap/stats/gof_np.py @@ -23,10 +23,14 @@ 'PPDNP' , ## Point-to-Point Dissimilarity Goodness-of-fit method ) # ============================================================================= +import sys, os, warnings +# ============================================================================= try : # ======================================================================= # ========================================================================= import numpy as np - from numpy.lib.recfunctions import structured_to_unstructured as s2u + with warnings.catch_warnings(): + warnings.simplefilter ( "ignore" , category = UserWarning ) + from numpy.lib.recfunctions import structured_to_unstructured as s2u # ========================================================================= except ImportError : # ========================================================================= @@ -36,7 +40,9 @@ try : # ======================================================================= # ========================================================================= import scipy as sp - from scipy.spatial.distance import cdist as cdist + with warnings.catch_warnings(): + warnings.simplefilter ( "ignore" , category = UserWarning ) + from scipy.spatial.distance import cdist as cdist # ========================================================================= except ImportError : # =========================================================================