Skip to content

Commit

Permalink
signal: Add re-exported functions to __all__ for public private s…
Browse files Browse the repository at this point in the history
…ubmodules
  • Loading branch information
pavyamsiri committed Oct 6, 2024
1 parent f994bfa commit e105065
Show file tree
Hide file tree
Showing 11 changed files with 216 additions and 33 deletions.
8 changes: 5 additions & 3 deletions scipy-stubs/signal/bsplines.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from scipy._typing import Untyped
# This module is not meant for public use and will be removed in SciPy v2.0.0.
# This stub simply re-exports the imported functions.
# TODO: Add type annotated dummy functions marked deprecated.
from ._spline_filters import *

def __dir__() -> Untyped: ...
def __getattr__(name) -> Untyped: ...
__all__ = ["cspline1d", "cspline1d_eval", "cspline2d", "gauss_spline", "qspline1d", "qspline1d_eval", "sepfir2d", "spline_filter"]
55 changes: 52 additions & 3 deletions scipy-stubs/signal/filter_design.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,53 @@
from scipy._typing import Untyped
# This module is not meant for public use and will be removed in SciPy v2.0.0.
# This stub simply re-exports the imported functions.
# TODO: Add type annotated dummy functions marked deprecated.
from ._filter_design import *

def __dir__() -> Untyped: ...
def __getattr__(name) -> Untyped: ...
__all__ = [
"BadCoefficients",
"band_stop_obj",
"bessel",
"besselap",
"bilinear",
"bilinear_zpk",
"buttap",
"butter",
"buttord",
"cheb1ap",
"cheb1ord",
"cheb2ap",
"cheb2ord",
"cheby1",
"cheby2",
"ellip",
"ellipap",
"ellipord",
"findfreqs",
"freqs",
"freqs_zpk",
"freqz",
"freqz_zpk",
"gammatone",
"group_delay",
"iircomb",
"iirdesign",
"iirfilter",
"iirnotch",
"iirpeak",
"lp2bp",
"lp2bp_zpk",
"lp2bs",
"lp2bs_zpk",
"lp2hp",
"lp2hp_zpk",
"lp2lp",
"lp2lp_zpk",
"normalize",
"sos2tf",
"sos2zpk",
"sosfreqz",
"tf2sos",
"tf2zpk",
"zpk2sos",
"zpk2tf",
]
8 changes: 5 additions & 3 deletions scipy-stubs/signal/fir_filter_design.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from scipy._typing import Untyped
# This module is not meant for public use and will be removed in SciPy v2.0.0.
# This stub simply re-exports the imported functions.
# TODO: Add type annotated dummy functions marked deprecated.
from ._fir_filter_design import *

def __dir__() -> Untyped: ...
def __getattr__(name) -> Untyped: ...
__all__ = ["firls", "firwin", "firwin2", "kaiser_atten", "kaiser_beta", "kaiserord", "minimum_phase", "remez"]
8 changes: 5 additions & 3 deletions scipy-stubs/signal/lti_conversion.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from scipy._typing import Untyped
# This module is not meant for public use and will be removed in SciPy v2.0.0.
# This stub simply re-exports the imported functions.
# TODO: Add type annotated dummy functions marked deprecated.
from ._lti_conversion import *

def __dir__() -> Untyped: ...
def __getattr__(name) -> Untyped: ...
__all__ = ["abcd_normalize", "cont2discrete", "normalize", "ss2tf", "ss2zpk", "tf2ss", "tf2zpk", "zpk2ss", "zpk2tf"]
40 changes: 37 additions & 3 deletions scipy-stubs/signal/ltisys.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,38 @@
from scipy._typing import Untyped
# This module is not meant for public use and will be removed in SciPy v2.0.0.
# This stub simply re-exports the imported functions.
# TODO: Add type annotated dummy functions marked deprecated.
from ._filter_design import *
from ._lti_conversion import *
from ._ltisys import *

def __dir__() -> Untyped: ...
def __getattr__(name) -> Untyped: ...
__all__ = [
"StateSpace",
"TransferFunction",
"ZerosPolesGain",
"abcd_normalize",
"bode",
"cont2discrete",
"dbode",
"dfreqresp",
"dimpulse",
"dlsim",
"dlti",
"dstep",
"freqresp",
"freqs",
"freqs_zpk",
"freqz",
"freqz_zpk",
"impulse",
"lsim",
"lti",
"normalize",
"place_poles",
"ss2tf",
"ss2zpk",
"step",
"tf2ss",
"tf2zpk",
"zpk2ss",
"zpk2tf",
]
52 changes: 49 additions & 3 deletions scipy-stubs/signal/signaltools.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,50 @@
from scipy._typing import Untyped
# This module is not meant for public use and will be removed in SciPy v2.0.0.
# This stub simply re-exports the imported functions.
# TODO: Add type annotated dummy functions marked deprecated.
from ._filter_design import *
from ._fir_filter_design import *
from ._ltisys import *
from ._signaltools import *
from ._upfirdn import *
from .windows import *

def __dir__() -> Untyped: ...
def __getattr__(name) -> Untyped: ...
__all__ = [
"cheby1",
"choose_conv_method",
"cmplx_sort",
"convolve",
"convolve2d",
"correlate",
"correlate2d",
"correlation_lags",
"decimate",
"deconvolve",
"detrend",
"dlti",
"fftconvolve",
"filtfilt",
"firwin",
"get_window",
"hilbert",
"hilbert2",
"invres",
"invresz",
"lfilter",
"lfilter_zi",
"lfiltic",
"medfilt",
"medfilt2d",
"oaconvolve",
"order_filter",
"resample",
"resample_poly",
"residue",
"residuez",
"sosfilt",
"sosfilt_zi",
"sosfiltfilt",
"unique_roots",
"upfirdn",
"vectorstrength",
"wiener",
]
20 changes: 17 additions & 3 deletions scipy-stubs/signal/spectral.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
from scipy._typing import Untyped
# This module is not meant for public use and will be removed in SciPy v2.0.0.
# This stub simply re-exports the imported functions.
# TODO: Add type annotated dummy functions marked deprecated.
from ._spectral_py import *

def __dir__() -> Untyped: ...
def __getattr__(name) -> Untyped: ...
__all__ = [
"check_COLA",
"check_NOLA",
"coherence",
"csd",
"get_window",
"istft",
"lombscargle",
"periodogram",
"spectrogram",
"stft",
"welch",
]
9 changes: 6 additions & 3 deletions scipy-stubs/signal/spline.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from scipy._typing import Untyped
# This module is not meant for public use and will be removed in SciPy v2.0.0.
# This stub simply re-exports the imported functions.
# TODO: Add type annotated dummy functions marked deprecated.
from ._spline import *
from ._spline_filters import *

def __dir__() -> Untyped: ...
def __getattr__(name) -> Untyped: ...
__all__ = ["cspline2d", "qspline2d", "sepfir2d", "symiirorder1", "symiirorder2"]
8 changes: 5 additions & 3 deletions scipy-stubs/signal/waveforms.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from scipy._typing import Untyped
# This module is not meant for public use and will be removed in SciPy v2.0.0.
# This stub simply re-exports the imported functions.
# TODO: Add type annotated dummy functions marked deprecated.
from ._waveforms import *

def __dir__() -> Untyped: ...
def __getattr__(name) -> Untyped: ...
__all__ = ["chirp", "gausspulse", "sawtooth", "square", "sweep_poly", "unit_impulse"]
8 changes: 5 additions & 3 deletions scipy-stubs/signal/wavelets.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from scipy._typing import Untyped
# This module is not meant for public use and will be removed in SciPy v2.0.0.
# This stub simply re-exports the imported functions.
# TODO: Add type annotated dummy functions marked deprecated.
from ._wavelets import *

def __dir__() -> Untyped: ...
def __getattr__(name) -> Untyped: ...
__all__ = ["cascade", "convolve", "cwt", "daub", "morlet", "morlet2", "qmf", "ricker"]
33 changes: 30 additions & 3 deletions scipy-stubs/signal/windows/windows.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,31 @@
from scipy._typing import Untyped
# This module is not meant for public use and will be removed in SciPy v2.0.0.
# This stub simply re-exports the imported functions.
# TODO: Add type annotated dummy functions marked deprecated.
from ._windows import *

def __dir__() -> Untyped: ...
def __getattr__(name) -> Untyped: ...
__all__ = [
"barthann",
"bartlett",
"blackman",
"blackmanharris",
"bohman",
"boxcar",
"chebwin",
"cosine",
"dpss",
"exponential",
"flattop",
"gaussian",
"general_cosine",
"general_gaussian",
"general_hamming",
"get_window",
"hamming",
"hann",
"kaiser",
"nuttall",
"parzen",
"taylor",
"triang",
"tukey",
]

0 comments on commit e105065

Please sign in to comment.