-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from pavyamsiri/public-private-submodules
First pass on dealing with public private modules: Re-export attributes of public private modules through `__all__`
- Loading branch information
Showing
78 changed files
with
4,316 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,21 @@ | ||
from scipy._typing import Untyped | ||
# This module is not meant for public use and will be removed in SciPy v2.0.0. | ||
from typing_extensions import deprecated | ||
|
||
def __dir__() -> Untyped: ... | ||
def __getattr__(name) -> Untyped: ... | ||
__all__ = ["fft", "fft2", "fftn", "ifft", "ifft2", "ifftn", "irfft", "rfft"] | ||
|
||
@deprecated("will be removed in SciPy v2.0.0") | ||
def fft(x: object, n: object = ..., axis: object = ..., overwrite_x: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def ifft(x: object, n: object = ..., axis: object = ..., overwrite_x: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def rfft(x: object, n: object = ..., axis: object = ..., overwrite_x: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def irfft(x: object, n: object = ..., axis: object = ..., overwrite_x: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def fftn(x: object, shape: object = ..., axes: object = ..., overwrite_x: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def ifftn(x: object, shape: object = ..., axes: object = ..., overwrite_x: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def fft2(x: object, shape: object = ..., axes: object = ..., overwrite_x: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def ifft2(x: object, shape: object = ..., axes: object = ..., overwrite_x: object = ...) -> object: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from scipy._typing import Untyped | ||
|
||
__all__ = ["convolve", "convolve_z", "destroy_convolve_cache", "init_convolution_kernel"] | ||
|
||
def convolve(inout: Untyped, omega: Untyped, swap_real_imag: bool = False, overwrite_x: bool = False) -> Untyped: ... | ||
def convolve_z(inout: Untyped, omega_real: Untyped, omega_imag: Untyped, overwrite_x: bool = False) -> Untyped: ... | ||
def init_convolution_kernel( | ||
n: int, kernel_func: Untyped, d: int = 0, zero_nyquist: int | None = None, kernel_func_extra_args: Untyped = () | ||
) -> Untyped: ... | ||
def destroy_convolve_cache() -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
from scipy._typing import Untyped | ||
# This module is not meant for public use and will be removed in SciPy v2.0.0. | ||
from typing_extensions import deprecated | ||
|
||
def __dir__() -> Untyped: ... | ||
def __getattr__(name) -> Untyped: ... | ||
__all__ = ["fftfreq", "fftshift", "ifftshift", "next_fast_len", "rfftfreq"] | ||
|
||
@deprecated("will be removed in SciPy v2.0.0") | ||
def fftfreq( | ||
n: object, | ||
d: object = ..., | ||
device: object = ..., | ||
) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def fftshift(x: object, axes: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def ifftshift(x: object, axes: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def next_fast_len(target: object) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def rfftfreq(n: object, d: object = ...) -> object: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,27 @@ | ||
from scipy._typing import Untyped | ||
# This module is not meant for public use and will be removed in SciPy v2.0.0. | ||
from typing_extensions import deprecated | ||
|
||
def __dir__() -> Untyped: ... | ||
def __getattr__(name) -> Untyped: ... | ||
from . import convolve as convolve | ||
|
||
__all__ = ["cc_diff", "convolve", "cs_diff", "diff", "hilbert", "ihilbert", "itilbert", "sc_diff", "shift", "ss_diff", "tilbert"] | ||
|
||
@deprecated("will be removed in SciPy v2.0.0") | ||
def diff(x: object, order: object = 1, period: object = ..., _cache: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def tilbert(x: object, h: object, period: object = ..., _cache: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def itilbert(x: object, h: object, period: object = ..., _cache: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def hilbert(x: object, _cache: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def ihilbert(x: object) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def cs_diff(x: object, a: object, b: object, period: object = ..., _cache: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def sc_diff(x: object, a: object, b: object, period: object = ..., _cache: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def ss_diff(x: object, a: object, b: object, period: object = ..., _cache: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def cc_diff(x: object, a: object, b: object, period: object = ..., _cache: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def shift(x: object, a: object, period: object = ..., _cache: object = ...) -> object: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,57 @@ | ||
from scipy._typing import Untyped | ||
# This module is not meant for public use and will be removed in SciPy v2.0.0. | ||
from typing_extensions import deprecated | ||
|
||
def __dir__() -> Untyped: ... | ||
def __getattr__(name) -> Untyped: ... | ||
__all__ = ["dct", "dctn", "dst", "dstn", "idct", "idctn", "idst", "idstn"] | ||
|
||
@deprecated("will be removed in SciPy v2.0.0") | ||
def dctn( | ||
x: object, | ||
type: object = ..., | ||
shape: object = ..., | ||
axes: object = ..., | ||
norm: object = ..., | ||
overwrite_x: object = ..., | ||
) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def idctn( | ||
x: object, | ||
type: object = ..., | ||
shape: object = ..., | ||
axes: object = ..., | ||
norm: object = ..., | ||
overwrite_x: object = ..., | ||
) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def dstn( | ||
x: object, | ||
type: object = ..., | ||
shape: object = ..., | ||
axes: object = ..., | ||
norm: object = ..., | ||
overwrite_x: object = ..., | ||
) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def idstn( | ||
x: object, | ||
type: object = ..., | ||
shape: object = ..., | ||
axes: object = ..., | ||
norm: object = ..., | ||
overwrite_x: object = ..., | ||
) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def dct( | ||
x: object, type: object = ..., n: object = ..., axis: object = ..., norm: object = ..., overwrite_x: object = ... | ||
) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def idct( | ||
x: object, type: object = ..., n: object = ..., axis: object = ..., norm: object = ..., overwrite_x: object = ... | ||
) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def dst( | ||
x: object, type: object = ..., n: object = ..., axis: object = ..., norm: object = ..., overwrite_x: object = ... | ||
) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def idst( | ||
x: object, type: object = ..., n: object = ..., axis: object = ..., norm: object = ..., overwrite_x: object = ... | ||
) -> object: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,56 @@ | ||
from scipy._typing import Untyped | ||
# This module is not meant for public use and will be removed in SciPy v2.0.0. | ||
from typing import Final | ||
|
||
def __dir__() -> Untyped: ... | ||
def __getattr__(name) -> Untyped: ... | ||
__all__ = [ | ||
"bispeu", | ||
"bispev", | ||
"curfit", | ||
"dblint", | ||
"fpchec", | ||
"fpcurf0", | ||
"fpcurf1", | ||
"fpcurfm1", | ||
"parcur", | ||
"parder", | ||
"pardeu", | ||
"pardtc", | ||
"percur", | ||
"regrid_smth", | ||
"regrid_smth_spher", | ||
"spalde", | ||
"spherfit_lsq", | ||
"spherfit_smth", | ||
"splder", | ||
"splev", | ||
"splint", | ||
"sproot", | ||
"surfit_lsq", | ||
"surfit_smth", | ||
"types", | ||
] | ||
|
||
bispeu: Final[object] | ||
bispev: Final[object] | ||
curfit: Final[object] | ||
dblint: Final[object] | ||
fpchec: Final[object] | ||
fpcurf0: Final[object] | ||
fpcurf1: Final[object] | ||
fpcurfm1: Final[object] | ||
parcur: Final[object] | ||
parder: Final[object] | ||
pardeu: Final[object] | ||
pardtc: Final[object] | ||
percur: Final[object] | ||
regrid_smth: Final[object] | ||
regrid_smth_spher: Final[object] | ||
spalde: Final[object] | ||
spherfit_lsq: Final[object] | ||
spherfit_smth: Final[object] | ||
splder: Final[object] | ||
splev: Final[object] | ||
splint: Final[object] | ||
sproot: Final[object] | ||
surfit_lsq: Final[object] | ||
surfit_smth: Final[object] | ||
types: Final[object] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,108 @@ | ||
from scipy._typing import Untyped | ||
# This module is not meant for public use and will be removed in SciPy v2.0.0. | ||
from typing_extensions import deprecated | ||
|
||
def __dir__() -> Untyped: ... | ||
def __getattr__(name) -> Untyped: ... | ||
__all__ = [ | ||
"BSpline", | ||
"bisplev", | ||
"bisplrep", | ||
"insert", | ||
"spalde", | ||
"splantider", | ||
"splder", | ||
"splev", | ||
"splint", | ||
"splprep", | ||
"splrep", | ||
"sproot", | ||
] | ||
|
||
@deprecated("will be removed in SciPy v2.0.0") | ||
def splprep( | ||
x: object, | ||
w: object = ..., | ||
u: object = ..., | ||
ub: object = ..., | ||
ue: object = ..., | ||
k: object = ..., | ||
task: object = ..., | ||
s: object = ..., | ||
t: object = ..., | ||
full_output: object = ..., | ||
nest: object = ..., | ||
per: object = ..., | ||
quiet: object = ..., | ||
) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def splrep( | ||
x: object, | ||
y: object, | ||
w: object = ..., | ||
xb: object = ..., | ||
xe: object = ..., | ||
k: object = ..., | ||
task: object = ..., | ||
s: object = ..., | ||
t: object = ..., | ||
full_output: object = ..., | ||
per: object = ..., | ||
quiet: object = ..., | ||
) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def splev(x: object, tck: object, der: object = ..., ext: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def splint(a: object, b: object, tck: object, full_output: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def sproot(tck: object, mest: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def spalde(x: object, tck: object) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def insert(x: object, tck: object, m: object = ..., per: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def splder(tck: object, n: object = ...) -> object: ... | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def splantider(tck: object, n: object = ...) -> object: ... | ||
|
||
# bsplines | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
class BSpline: | ||
def __init__(self, t: object, c: object, k: object, extrapolate: object = ..., axis: object = ...) -> None: ... | ||
@classmethod | ||
def construct_fast(cls, t: object, c: object, k: object, extrapolate: object = ..., axis: object = ...) -> object: ... | ||
@property | ||
def tck(self) -> object: ... | ||
@classmethod | ||
def basis_element(cls, t: object, extrapolate: object = ...) -> object: ... | ||
@classmethod | ||
def design_matrix(cls, x: object, t: object, k: object, extrapolate: object = ...) -> object: ... | ||
def __call__(self, x: object, nu: object = ..., extrapolate: object = ...) -> object: ... | ||
def derivative(self, nu: object = ...) -> object: ... | ||
def antiderivative(self, nu: object = ...) -> object: ... | ||
def integrate(self, a: object, b: object, extrapolate: object = ...) -> object: ... | ||
@classmethod | ||
def from_power_basis(cls, pp: object, bc_type: object = ...) -> object: ... | ||
def insert_knot(self, x: object, m: object = ...) -> object: ... | ||
|
||
# fitpack_impl | ||
@deprecated("will be removed in SciPy v2.0.0") | ||
def bisplrep( | ||
x: object, | ||
y: object, | ||
z: object, | ||
w: object = ..., | ||
xb: object = ..., | ||
xe: object = ..., | ||
yb: object = ..., | ||
ye: object = ..., | ||
kx: object = ..., | ||
ky: object = ..., | ||
task: object = ..., | ||
s: object = ..., | ||
eps: object = ..., | ||
tx: object = ..., | ||
ty: object = ..., | ||
full_output: object = ..., | ||
nxest: object = ..., | ||
nyest: object = ..., | ||
quiet: object = ..., | ||
) -> object: ... | ||
def bisplev(x: object, y: object, tck: object, dx: object = ..., dy: object = ...) -> object: ... |
Oops, something went wrong.