Skip to content

Commit

Permalink
fix ?
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Aug 1, 2024
1 parent fd97d46 commit 4ddd0d1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions ostap/math/bspline.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,15 +274,11 @@ def interpolate ( func , abscissas , spline , *args ) :

# =============================================================================
## For b-spline interpolation we need scipy!
# ============================================================================
# =============================================================================

try :
import scipy
except ImportError :
scipy = None

if scipy :

# =========================================================================
import scipy.interpolate
# =========================================================================
## create interpolation spline using scipy machinery
# @code
Expand All @@ -299,7 +295,7 @@ def interpolation ( table ,
bc_type = None ) :
"""Create interpolation spline using scipy machinery
>>> table = ... ## interpolation table
>>> spline = intepolation ( table , degree = 3 )
>>> spline = intepolation ( table , degree = 3 )
- see `scipy.interpolation.make_innterp_spline`
- see `Ostap.Math.Interpolaiton.Table`
"""
Expand All @@ -324,6 +320,9 @@ def interpolation ( table ,

__all__ = __all__ + ( 'interpolation', )

except ImportError :
pass

# =============================================================================
## Construct the variation diminishing approximation
# @code
Expand Down

0 comments on commit 4ddd0d1

Please sign in to comment.