typo: vmin instead of vmax

This commit is contained in:
2024-10-03 11:50:49 +02:00
parent df17ae536c
commit 98bbe76936

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