Permalink
Browse files

DEP: remove deprecated names in fftpack.

  • Loading branch information...
1 parent a4fed55 commit f791984cf1d8aedaeaf4fa36db539744d88de051 @rgommers rgommers committed Mar 7, 2011
Showing with 11 additions and 22 deletions.
  1. +10 −11 doc/summarize.py
  2. +1 −11 numpy/fft/fftpack.py
View
@@ -42,7 +42,6 @@
# --- numpy.fft:
fft fft.Tester fft.bench fft.fftpack fft.fftpack_lite fft.helper
-fft.refft fft.refft2 fft.refftn fft.irefft fft.irefft2 fft.irefftn
fft.info fft.test
# --- numpy.linalg:
@@ -67,10 +66,10 @@ def main():
fn = os.path.join(CUR_DIR, 'dump.xml')
if os.path.isfile(fn):
import_phantom_module(fn)
-
+
# check
documented, undocumented = check_numpy()
-
+
# report
in_sections = {}
for name, locations in documented.iteritems():
@@ -108,7 +107,7 @@ def check_numpy():
if k.startswith('numpy.'):
d[k[6:]] = d[k]
del d[k]
-
+
return documented, undocumented
def get_undocumented(documented, module, module_name=None, skip=[]):
@@ -123,24 +122,24 @@ def get_undocumented(documented, module, module_name=None, skip=[]):
"""
undocumented = {}
-
+
if module_name is None:
module_name = module.__name__
-
+
for name in dir(module):
obj = getattr(module, name)
if name.startswith('_'): continue
-
+
full_name = '.'.join([module_name, name])
if full_name in skip: continue
if full_name.startswith('numpy.') and full_name[6:] in skip: continue
if not (inspect.ismodule(obj) or callable(obj) or inspect.isclass(obj)):
continue
-
+
if full_name not in documented:
undocumented[full_name] = True
-
+
return undocumented
def format_in_columns(lst, max_columns):
@@ -160,9 +159,9 @@ def format_in_columns(lst, max_columns):
nrows = len(lst)//ncols
else:
nrows = 1 + len(lst)//ncols
-
+
fmt = ' %%-%ds ' % (col_len-2)
-
+
lines = []
for n in range(nrows):
lines.append("".join([fmt % x for x in lst[n::nrows]]))
View
@@ -31,8 +31,7 @@
"""
__all__ = ['fft','ifft', 'rfft', 'irfft', 'hfft', 'ihfft', 'rfftn',
- 'irfftn', 'rfft2', 'irfft2', 'fft2', 'ifft2', 'fftn', 'ifftn',
- 'refft', 'irefft','refftn','irefftn', 'refft2', 'irefft2']
+ 'irfftn', 'rfft2', 'irfft2', 'fft2', 'ifft2', 'fftn', 'ifftn']
from numpy.core import asarray, zeros, swapaxes, shape, conjugate, \
take
@@ -1114,12 +1113,3 @@ def irfft2(a, s=None, axes=(-2,-1)):
"""
return irfftn(a, s, axes)
-
-# Deprecated names
-from numpy import deprecate
-refft = deprecate(rfft, 'refft', 'rfft')
-irefft = deprecate(irfft, 'irefft', 'irfft')
-refft2 = deprecate(rfft2, 'refft2', 'rfft2')
-irefft2 = deprecate(irfft2, 'irefft2', 'irfft2')
-refftn = deprecate(rfftn, 'refftn', 'rfftn')
-irefftn = deprecate(irfftn, 'irefftn', 'irfftn')

0 comments on commit f791984

Please sign in to comment.