numpy.oldnumeric.fix_default_axis
index
/usr/lib/python2.6/dist-packages/numpy/oldnumeric/fix_default_axis.py

This module adds the default axis argument to code which did not specify it
for the functions where the default was changed in NumPy.
 
The functions changed are
 
add -1  ( all second argument)
======
nansum
nanmax
nanmin
nanargmax
nanargmin
argmax
argmin
compress 3
 
 
add 0
======
take     3
repeat   3
sum         # might cause problems with builtin.
product
sometrue
alltrue
cumsum
cumproduct
average
ptp
cumprod
prod
std
mean

 
Modules
       
glob
os
re
string
sys

 
Functions
       
_add_axis(fstr, name, repl)
_func(arg, dirname, fnames)
_import_change(fstr, names)
add_axis(fstr, import_change=False)
convertall(direc='.', import_change=False)
Convert all .py files in the directory given
 
For each file, a backup of <usesnumeric>.py is made as
<usesnumeric>.py.orig.  A new file named <usesnumeric>.py
is then written with the updated code.
convertfile(filename, import_change=False)
Convert the filename given from using Numeric to using NumPy
 
Copies the file to filename.orig and then over-writes the file
with the updated code
converttree(direc='.', import_change=False)
Convert all .py files in the tree given
copyfile(name, fstr)
fromargs(args)
getfile(name)
makenewfile(name, filestr)

 
Data
        __all__ = ['convertfile', 'convertall', 'converttree']
__file__ = '/usr/lib/python2.6/dist-packages/numpy/oldnumeric/fix_default_axis.pyc'
__name__ = 'numpy.oldnumeric.fix_default_axis'
__package__ = 'numpy.oldnumeric'
_all = ['take', 'repeat', 'sum', 'product', 'sometrue', 'alltrue', 'cumsum', 'cumproduct', 'average', 'ptp', 'cumprod', 'prod', 'std', 'mean', 'nansum', 'nanmax', 'nanmin', 'nanargmax', 'nanargmin', 'argmax', ...]
_args3 = ['compress', 'take', 'repeat']
_astr = r'compress\s*[(]'
_func0 = ['take', 'repeat', 'sum', 'product', 'sometrue', 'alltrue', 'cumsum', 'cumproduct', 'average', 'ptp', 'cumprod', 'prod', 'std', 'mean']
_funcm1 = ['nansum', 'nanmax', 'nanmin', 'nanargmax', 'nanargmin', 'argmax', 'argmin', 'compress']
disallowed = '_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
func_re = {'alltrue': <_sre.SRE_Pattern object at 0x6cf5e90>, 'argmax': <_sre.SRE_Pattern object at 0x7184860>, 'argmin': <_sre.SRE_Pattern object at 0x7184b10>, 'average': <_sre.SRE_Pattern object at 0x7198700>, 'compress': <_sre.SRE_Pattern object at 0x7184de0>, 'cumprod': <_sre.SRE_Pattern object at 0x717d0d0>, 'cumproduct': <_sre.SRE_Pattern object at 0x6d339f0>, 'cumsum': <_sre.SRE_Pattern object at 0x6d338e0>, 'mean': <_sre.SRE_Pattern object at 0x719a030>, 'nanargmax': <_sre.SRE_Pattern object at 0x71843f0>, ...}
name = 'compress'