From b9b47ceb0009a9431d527a7299745ce8066b6a47 Mon Sep 17 00:00:00 2001 From: beramos Date: Mon, 4 Mar 2024 10:14:28 +0100 Subject: [PATCH] invert dips check Signed-off-by: beramos --- pylops/utils/signalprocessing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylops/utils/signalprocessing.py b/pylops/utils/signalprocessing.py index 4aa277fa..0d1fb573 100644 --- a/pylops/utils/signalprocessing.py +++ b/pylops/utils/signalprocessing.py @@ -246,7 +246,7 @@ def slope_estimate( regdata = l1 > eps anisos[regdata] = 1 - l2[regdata] / l1[regdata] - if not dips: + if dips: slopes = 0.5 * np.arctan2(2 * gzx, gzz - gxx) else: regdata = np.abs(gzx) > eps