up follow livre
This commit is contained in:
parent
70a5c3465c
commit
cffb31c1ef
12198 changed files with 2562132 additions and 35 deletions
17
venv/lib/python3.13/site-packages/numpy/fft/helper.py
Normal file
17
venv/lib/python3.13/site-packages/numpy/fft/helper.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
def __getattr__(attr_name):
|
||||
import warnings
|
||||
|
||||
from numpy.fft import _helper
|
||||
ret = getattr(_helper, attr_name, None)
|
||||
if ret is None:
|
||||
raise AttributeError(
|
||||
f"module 'numpy.fft.helper' has no attribute {attr_name}")
|
||||
warnings.warn(
|
||||
"The numpy.fft.helper has been made private and renamed to "
|
||||
"numpy.fft._helper. All four functions exported by it (i.e. fftshift, "
|
||||
"ifftshift, fftfreq, rfftfreq) are available from numpy.fft. "
|
||||
f"Please use numpy.fft.{attr_name} instead.",
|
||||
DeprecationWarning,
|
||||
stacklevel=3
|
||||
)
|
||||
return ret
|
||||
Loading…
Add table
Add a link
Reference in a new issue