diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-03-10 19:24:04 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-03-10 19:24:04 +0000 |
commit | 3493d8b3cee54037e893fde83f3113a66b0ec7e8 (patch) | |
tree | 3e734d8c770ab71531a82d57eaa502d4a7e04f1f /numpy | |
parent | d04f07463ef0816435777ea4213752c5bd0f2760 (diff) | |
download | numpy-3493d8b3cee54037e893fde83f3113a66b0ec7e8.tar.gz |
Add back missing typeNA values
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/numerictypes.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/numpy/core/numerictypes.py b/numpy/core/numerictypes.py index b91c42763..30d90df8c 100644 --- a/numpy/core/numerictypes.py +++ b/numpy/core/numerictypes.py @@ -204,11 +204,11 @@ def _add_integer_aliases(): val = typeinfo[ctype] bits = val[2] intname = 'int%d' % bits + UIntname = 'UInt%d' % bits + Intname = 'Int%d' % bits + uval = typeinfo['U'+ctype] if intname not in allTypes.keys(): uintname = 'uint%d' % bits - UIntname = 'UInt%d' % bits - Intname = 'Int%d' % bits - uval = typeinfo['U'+ctype] typeobj = val[-1] utypeobj = uval[-1] allTypes[intname] = typeobj @@ -223,6 +223,11 @@ def _add_integer_aliases(): typeNA[utypeobj] = UIntname typeNA[val[0]] = Intname typeNA[uval[0]] = UIntname + else: + typeNA[typeobj] = Intname + typeNA[utypeobj] = UIntname + typeNA[val[0]] = Intname + typeNA[uval[0]] = UIntname _add_integer_aliases() # We use these later |