/usr/lib64/python2.6/site-packages/numpy/numarray
NameSizeModeActions
numpy/-0755rm
alter_code1.py93900644editdlrm
alter_code1.pyc105260644editdlrm
alter_code1.pyo105260644editdlrm
alter_code2.py15720644editdlrm
alter_code2.pyc28120644editdlrm
alter_code2.pyo28120644editdlrm
compat.py960644editdlrm
compat.pyc2840644editdlrm
compat.pyo2840644editdlrm
convolve.py4080644editdlrm
convolve.pyc5610644editdlrm
convolve.pyo5610644editdlrm
fft.py1030644editdlrm
fft.pyc2730644editdlrm
fft.pyo2730644editdlrm
functions.py161280644editdlrm
functions.pyc186280644editdlrm
functions.pyo185770644editdlrm
image.py3980644editdlrm
image.pyc5480644editdlrm
image.pyo5480644editdlrm
linear_algebra.py3180644editdlrm
linear_algebra.pyc6670644editdlrm
linear_algebra.pyo6670644editdlrm
ma.py350644editdlrm
ma.pyc1920644editdlrm
ma.pyo1920644editdlrm
matrix.py1600644editdlrm
matrix.pyc4900644editdlrm
matrix.pyo4900644editdlrm
mlab.py1050644editdlrm
mlab.pyc2760644editdlrm
mlab.pyo2760644editdlrm
nd_image.py3950644editdlrm
nd_image.pyc5480644editdlrm
nd_image.pyo5480644editdlrm
numerictypes.py153180644editdlrm
numerictypes.pyc137190644editdlrm
numerictypes.pyo137190644editdlrm
random_array.py4180644editdlrm
random_array.pyc6360644editdlrm
random_array.pyo6360644editdlrm
session.py107910644editdlrm
session.pyc133260644editdlrm
session.pyo133260644editdlrm
setup.py4720644editdlrm
setup.pyc7910644editdlrm
setup.pyo7910644editdlrm
setupscons.py4310644editdlrm
setupscons.pyc8090644editdlrm
setupscons.pyo8090644editdlrm
ufuncs.py13580644editdlrm
ufuncs.pyc20040644editdlrm
ufuncs.pyo20040644editdlrm
util.py15310644editdlrm
util.pyc21780644editdlrm
util.pyo21780644editdlrm
_capi.so746640755editdlrm
__init__.py5540644editdlrm
__init__.pyc6420644editdlrm
__init__.pyo6420644editdlrm
Edit: /usr/lib64/python2.6/site-packages/numpy/numarray/alter_code2.py (1572B)
""" This module converts code written for numpy.numarray to work with numpy FIXME: finish this. """ #__all__ = ['convertfile', 'convertall', 'converttree'] __all__ = [] import warnings warnings.warn("numpy.numarray.alter_code2 is not working yet.") import sys import os import glob def makenewfile(name, filestr): fid = file(name, 'w') fid.write(filestr) fid.close() def getandcopy(name): fid = file(name) filestr = fid.read() fid.close() base, ext = os.path.splitext(name) makenewfile(base+'.orig', filestr) return filestr def 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 """ filestr = getandcopy(filename) filestr = fromstr(filestr) makenewfile(filename, filestr) def fromargs(args): filename = args[1] convertfile(filename) def convertall(direc=os.path.curdir): """Convert all .py files to use NumPy (from Numeric) in the directory given For each file, a backup of .py is made as .py.orig. A new file named .py is then written with the updated code. """ files = glob.glob(os.path.join(direc,'*.py')) for afile in files: convertfile(afile) def _func(arg, dirname, fnames): convertall(dirname) def converttree(direc=os.path.curdir): """Convert all .py files in the tree given """ os.path.walk(direc, _func, None) if __name__ == '__main__': fromargs(sys.argv)