From ce9414d3007101af1c18d674bd162cdef48c564d Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Fri, 2 Jun 2006 17:31:54 +0000 Subject: Use convertcode to replace matrixmultiply with dot. Add DeprecationWarning to several old Numeric calls. --- numpy/lib/convertcode.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy/lib/convertcode.py') diff --git a/numpy/lib/convertcode.py b/numpy/lib/convertcode.py index 1db3ecc85..67a98cb1d 100644 --- a/numpy/lib/convertcode.py +++ b/numpy/lib/convertcode.py @@ -17,6 +17,7 @@ Makes the following changes: * Convert xx.savespace(?) to pass + ## xx.savespace(?) #### -- not * Convert a.shape = ? to a.reshape(?) * Prints warning for use of bool, int, float, copmlex, object, and unicode + * replaces matrixmultiply with dot """ __all__ = ['fromfile', 'fromstr'] @@ -65,6 +66,7 @@ def replaceattr(astr): astr = astr.replace(".byteswapped()",".byteswap()") astr = astr.replace(".toscalar()", ".item()") astr = astr.replace(".itemsize()",".itemsize") + astr = astr.replace("matrixmultiply","dot") # preserve uses of flat that should be o.k. tmpstr = flatindex_re.sub("@@@@\\2",astr) # replace other uses of flat -- cgit v1.2.1