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

This module converts code written for numpy.oldnumeric to work
with numpy
 
FIXME:  Flesh this out.
 
Makes the following changes:
 * Converts typecharacters '1swu' to 'bhHI' respectively
   when used as typecodes
 * Changes import statements
 * Change typecode= to dtype=
 * Eliminates savespace=xxx keyword arguments
 *  Removes it when keyword is not given as well
 * replaces matrixmultiply with dot
 * converts functions that don't give axis= keyword that have changed
 * converts functions that don't give typecode= keyword that have changed
 * converts use of capitalized type-names
 * converts old function names in oldnumeric.linear_algebra,
   oldnumeric.random_array, and oldnumeric.fft

 
Modules
       
datetime
glob
os
re
sys
warnings

 
Functions
       
_func(arg, dirname, fnames)
changeimports(fstr, name, newname)
convertall(direc='.')
Convert all .py files to use NumPy (from Numeric) 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)
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='.')
Convert all .py files in the tree given
fromargs(args)
fromstr(filestr)
getandcopy(name)
makenewfile(name, filestr)
replaceattr(astr)
replaceother(astr)
replacetypechars(astr)
# To convert typecharacters we need to
# Not very safe.  Disabled for now..

 
Data
        __all__ = []
__file__ = '/usr/lib/python2.6/dist-packages/numpy/oldnumeric/alter_code2.pyc'
__name__ = 'numpy.oldnumeric.alter_code2'
__package__ = 'numpy.oldnumeric'
__warningregistry__ = {('numpy.oldnumeric.alter_code2 is not working yet.', <type 'exceptions.UserWarning'>, 26): True}