File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -412,6 +412,7 @@ def check_importable(module_name):
412
412
('scipy.signal.ltisys' , None ),
413
413
('scipy.signal.signaltools' , None ),
414
414
('scipy.signal.spectral' , None ),
415
+ ('scipy.signal.spline' , None ),
415
416
('scipy.signal.waveforms' , None ),
416
417
('scipy.signal.wavelets' , None ),
417
418
('scipy.signal.windows.windows' , 'windows' ),
Original file line number Diff line number Diff line change 2
2
# versions of SciPy. Use the `scipy.signal` namespace for importing the
3
3
# functions included below.
4
4
5
- import warnings
5
+ from scipy . _lib . deprecation import _sub_module_deprecation
6
6
7
- from . import _spline
8
7
9
8
__all__ = ['sepfir2d' ] # noqa: F822
10
9
@@ -14,12 +13,6 @@ def __dir__():
14
13
15
14
16
15
def __getattr__ (name ):
17
- if name not in __all__ :
18
- raise AttributeError (
19
- f"scipy.signal.spline is deprecated and has no attribute { name } . "
20
- "Try looking in scipy.signal instead." )
21
-
22
- warnings .warn (f"Please use `{ name } ` from the `scipy.signal` namespace, "
23
- "the `scipy.signal.spline` namespace is deprecated." ,
24
- category = DeprecationWarning , stacklevel = 2 )
25
- return getattr (_spline , name )
16
+ return _sub_module_deprecation (sub_package = "signal" , module = "spline" ,
17
+ private_modules = ["_spline" ], all = __all__ ,
18
+ attribute = name )
You can’t perform that action at this time.
0 commit comments