This commit is contained in:
2025-09-07 22:09:54 +02:00
parent e1b817252c
commit 2fc0d000b6
7796 changed files with 2159515 additions and 933 deletions

View 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