From 1371ca6ac468b90bd708345eac888a6ddcdf4a22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Wed, 13 Nov 2024 16:48:08 +0100 Subject: [PATCH] CLN: mark uniqueRows as deprecated --- pygimli/utils/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pygimli/utils/utils.py b/pygimli/utils/utils.py index c1057f517..66d26c8ae 100644 --- a/pygimli/utils/utils.py +++ b/pygimli/utils/utils.py @@ -798,6 +798,7 @@ def uniqueRows(data, precision=2): >>> bool(np.all(A[ia] == unA)) True """ + pg.deprecated(hint="Please use np.unique(axis=0) instead.") fak = 100**precision dFix = np.fix(data * fak) / fak + 0.0 dtype = np.dtype((np.void, dFix.dtype.itemsize * dFix.shape[1]))