From 7a8ebd261c37307176bbad175ca60e99aa53fabf Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Wed, 20 Sep 2006 19:01:00 +0000 Subject: Remove sorted from unique1d. Add testall to test if level > 10. Remove compiler warning. --- numpy/lib/arraysetops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/arraysetops.py') diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index e7c86e97c..6c5115582 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -64,7 +64,7 @@ def unique1d(ar1, retindx=False): return perm.compress(flag), aux.compress(flag) else: - ar = numpy.array(sorted(ar)) + ar.sort() return ar.compress(ediff1d(ar, 1) != 0) ## -- cgit v1.2.1