diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-07-26 21:14:14 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-07-26 21:14:14 +0000 |
commit | ec6d0629236081a4e24e632f603aa4a0b56926a3 (patch) | |
tree | 6e1a9eab7ba5944080e67a76aecd9b81c3cf6889 /numpy/lib/function_base.py | |
parent | 04dfae6d7468213950012e37adeb86ab82efcdca (diff) | |
download | numpy-ec6d0629236081a4e24e632f603aa4a0b56926a3.tar.gz |
Make version number 0.9.9 until 1.0 comes out
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 44b7858f5..4789f0d0c 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -511,6 +511,8 @@ def unique(x): """ try: tmp = x.flatten() + if tmp.size == 0: + return tmp tmp.sort() idx = concatenate(([True],tmp[1:]!=tmp[:-1])) return tmp[idx] |