typo: vmin instead of vmax

This commit is contained in:
augustin_s committed 2024-10-03 11:50:49 +02:00
1 parent df17ae536c
commit 98bbe76936
1 file changed
+1 -1
+1 -1
View File
@@ -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