diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-09-19 07:55:25 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-09-19 07:55:25 +0000 |
commit | 6c6675d4573bbe0ee2635de009837b8a3776efa7 (patch) | |
tree | dafe6c860446b1561dd83a3383f0c11c85d4f2d4 /scipy/base/convertcode.py | |
parent | 9e29c45a989f7dfa1e25acc90efb27e364873734 (diff) | |
download | numpy-6c6675d4573bbe0ee2635de009837b8a3776efa7.tar.gz |
Converting masked arrays
Diffstat (limited to 'scipy/base/convertcode.py')
-rw-r--r-- | scipy/base/convertcode.py | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/scipy/base/convertcode.py b/scipy/base/convertcode.py index d0784c678..be5e6d8eb 100644 --- a/scipy/base/convertcode.py +++ b/scipy/base/convertcode.py @@ -10,9 +10,14 @@ # - .iscontiguous() # - .byteswapped() # - .itemsize() -# * Converts useage of .flat.xxx to .ravel().xxx -# * Prints warning of other usage of flat. +# * Converts .flat to .ravel() except for .flat = xxx or .flat[xxx] +# * Change typecode= to dtype= # * Prints warning for use of bool, int, float, copmlex, object, and unicode +# +# TODO: +# + Eliminate savespace= from array, sarray, asarray, ones, and zeros, +# + Eliminate the methods .spacesaver() (replace with True) and .savespace(), +# convert xx.savespace(?) to pass import sys @@ -37,21 +42,7 @@ def replacetypechars(astr): astr = astr.replace("'u'","'I'") return astr -# This function replaces -# import x1, x2, x3 -# -#with -# import x1 -# import x2 -# import x3 -importre = re.compile('import\s+?(\S+?[^,]+?,\s*)+?') -def expand_import(astr): - - return astr - - def changeimports(fstr, name, newname): - fstr = expand_import(fstr) importstr = 'import %s' % name importasstr = 'import %s as ' % name fromstr = 'from %s import ' % name |