From f67913d373af6b0e0b996ddf4c7d2d227b58ff65 Mon Sep 17 00:00:00 2001 From: Carlos Paniagua Date: Mon, 4 Nov 2024 00:44:07 -0500 Subject: [PATCH] fix: correct order of extrema variables in impose_minima function --- src/tilingutils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tilingutils.jl b/src/tilingutils.jl index 7eeab9a0..0f902461 100644 --- a/src/tilingutils.jl +++ b/src/tilingutils.jl @@ -494,7 +494,7 @@ function impose_minima( I::AbstractArray{T}, BW::AbstractMatrix{Bool} ) where {T<:AbstractFloat} # compute shift - b, a = extrema(I) + a, b = extrema(I) rng = b - a h = rng == 0 ? 0.1 : rng / 1000