Skip to content

Commit

Permalink
fix ?
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Oct 1, 2024
1 parent d8e3294 commit 1e1e9c4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ostap/stats/gof_np.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
# =========================================================================
Expand All @@ -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 :
# =========================================================================
Expand Down

0 comments on commit 1e1e9c4

Please sign in to comment.