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