Skip to content

Commit

Permalink
🗑️ signal: deprecated 1.15.0 removals
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Dec 17, 2024
1 parent d5973ac commit 015723a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 47 deletions.
11 changes: 1 addition & 10 deletions scipy-stubs/signal/bsplines.pyi
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# This module is not meant for public use and will be removed in SciPy v2.0.0.
from typing_extensions import deprecated

__all__ = [
"cspline1d",
"cspline1d_eval",
"cspline2d",
"gauss_spline",
"qspline1d",
"qspline1d_eval",
"sepfir2d",
"spline_filter",
]
__all__ = ["cspline1d", "cspline1d_eval", "cspline2d", "gauss_spline", "qspline1d", "qspline1d_eval", "sepfir2d", "spline_filter"]

@deprecated("will be removed in SciPy v2.0.0")
def cspline1d(signal: object, lamb: object = ...) -> object: ...
Expand Down
6 changes: 5 additions & 1 deletion scipy-stubs/signal/filter_design.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ __all__ = [
"freqs",
"freqs_zpk",
"freqz",
"freqz_sos",
"freqz_zpk",
"gammatone",
"group_delay",
Expand Down Expand Up @@ -74,7 +75,10 @@ def freqz_zpk(z: object, p: object, k: object, worN: object = ..., whole: object
@deprecated("will be removed in SciPy v2.0.0")
def group_delay(system: object, w: object = ..., whole: object = ..., fs: object = ...) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def sosfreqz(sos: object, worN: object = ..., whole: object = ..., fs: object = ...) -> object: ...
def freqz_sos(sos: object, worN: object = ..., whole: object = ..., fs: object = ...) -> object: ...

sosfreqz = freqz_sos # pyright: ignore[reportDeprecated]

@deprecated("will be removed in SciPy v2.0.0")
def tf2zpk(b: object, a: object) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
Expand Down
3 changes: 0 additions & 3 deletions scipy-stubs/signal/signaltools.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ from typing_extensions import Self, deprecated
__all__ = [
"cheby1",
"choose_conv_method",
"cmplx_sort",
"convolve",
"convolve2d",
"correlate",
Expand Down Expand Up @@ -199,5 +198,3 @@ def decimate(
axis: object = ...,
zero_phase: object = ...,
) -> object: ...
@deprecated("will be removed in SciPy v1.15.0")
def cmplx_sort(p: object) -> object: ...
14 changes: 2 additions & 12 deletions scipy-stubs/signal/spline.pyi
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# This module is not meant for public use and will be removed in SciPy v2.0.0.
from typing_extensions import deprecated

__all__ = ["cspline2d", "qspline2d", "sepfir2d", "symiirorder1", "symiirorder2"]
from typing_extensions import deprecated

# _spline_filters
@deprecated("will be removed in SciPy v2.0.0")
def qspline2d(signal: object, lamb: object = ..., precision: object = ...) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def cspline2d(signal: object, lamb: object = ..., precision: object = ...) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def symiirorder1(signal: object, c0: object, z1: object, precision: object = ...) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def symiirorder2(input: object, r: object, omega: object, precision: object = ...) -> object: ...
__all__ = ["sepfir2d"]

# _spline
@deprecated("will be removed in SciPy v2.0.0")
def sepfir2d(input: object, hrow: object, hcol: object) -> object: ...
23 changes: 2 additions & 21 deletions scipy-stubs/signal/wavelets.pyi
Original file line number Diff line number Diff line change
@@ -1,21 +1,2 @@
# This module is not meant for public use and will be removed in SciPy v1.15.0.
from typing_extensions import deprecated

__all__ = ["cascade", "convolve", "cwt", "daub", "morlet", "morlet2", "qmf", "ricker"]

@deprecated("will be removed in SciPy v1.15.0")
def convolve(in1: object, in2: object, mode: object = ..., method: object = ...) -> object: ...
@deprecated("will be removed in SciPy v1.15.0")
def cwt(data: object, wavelet: object, widths: object, dtype: object = ..., **kwargs: object) -> object: ...
@deprecated("will be removed in SciPy v1.15.0")
def cascade(hk: object, J: object = ...) -> object: ...
@deprecated("will be removed in SciPy v1.15.0")
def morlet(M: object, w: object = ..., s: object = ..., complete: object = ...) -> object: ...
@deprecated("will be removed in SciPy v1.15.0")
def daub(p: object) -> object: ...
@deprecated("will be removed in SciPy v1.15.0")
def morlet2(M: object, s: object, w: object = ...) -> object: ...
@deprecated("will be removed in SciPy v1.15.0")
def qmf(hk: object) -> object: ...
@deprecated("will be removed in SciPy v1.15.0")
def ricker(points: object, a: object) -> object: ...
# This file is not meant for public use and will be removed in SciPy v2.0.0.
__all__: list[str] = []

0 comments on commit 015723a

Please sign in to comment.