From 98bbe76936d65f4b986e5317d977343d9228bbe0 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Thu, 3 Oct 2024 11:50:49 +0200 Subject: [PATCH] typo: vmin instead of vmax --- dap/algos/thresh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dap/algos/thresh.py b/dap/algos/thresh.py index 4cd2ac4..69da60e 100644 --- a/dap/algos/thresh.py +++ b/dap/algos/thresh.py @@ -28,7 +28,7 @@ def threshold(data, vmin, vmax, replacement): data[data < vmin] = replacement #TODO: skipping max is a guess, but not obvious/symmetric -- better to ensure the order min < max by switching them if needed if vmax > vmin: - data[data > vmin] = replacement + data[data > vmax] = replacement