Skip to content

Commit

Permalink
suppress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Aug 6, 2024
1 parent 9196e00 commit 23ba7c8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ostap/math/bspline.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,14 @@
'shoot' , ## generate random numbers
)
# =============================================================================
import ROOT, math
from ostap.core.core import Ostap, funID
from ostap.core.ostap_types import is_integer, integer_types
from ostap.math.base import iszero, isequal, signum, doubles
from ostap.core.meta_info import root_info
import ostap.math.reduce
import ostap.math.bernstein
import ostap.math.polynomials

import ROOT, math, warnings
# =============================================================================
# logging
# =============================================================================
Expand Down Expand Up @@ -262,8 +261,6 @@ def interpolate ( func , abscissas , spline , *args ) :
from ostap.math.interpolation import points
table = points ( func , abscissas )

## print ( "Table", type ( table ) , table.size () )

if root_info < (6 , 24 ) and 16 < len ( table ) and table.atype() < 0 :
logger.warning ('interpoalte: segmentation fault can occur for large number of points')

Expand All @@ -278,7 +275,9 @@ def interpolate ( func , abscissas , spline , *args ) :

try :
# =========================================================================
import scipy.interpolate
with warnings.catch_warnings():
warnings.simplefilter("ignore")
import scipy.interpolate
# =========================================================================
## create interpolation spline using scipy machinery
# @code
Expand Down

0 comments on commit 23ba7c8

Please sign in to comment.