CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
spline.py26 linesDownload Raw Back to signal
1# This file is not meant for public use and will be removed in the future
2# versions of SciPy. Use the `scipy.signal` namespace for importing the
3# functions included below.
4
5import warnings
6
7from . import _spline
8
9__all__ = ['sepfir2d']  # noqa: F822
10
11
12def __dir__():
13    return __all__
14
15
16def __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)
26 
Aluode/PerceptionLabPortable · CoolFace