From a377bcccc9f2b3303440977f6cfc7936cf0475ec Mon Sep 17 00:00:00 2001 From: AdamWysokinski <42808557+AdamWysokinski@users.noreply.github.com> Date: Tue, 18 Oct 2022 13:10:02 +0000 Subject: [PATCH] Update SWT.jl ) missing in the error message --- src/mod/SWT.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mod/SWT.jl b/src/mod/SWT.jl index ca0e67d..f915393 100644 --- a/src/mod/SWT.jl +++ b/src/mod/SWT.jl @@ -62,7 +62,7 @@ function sdwt(x::AbstractArray{T}, L::Integer = maxtransformlevels(x)) where T<:Number # Sanity check @assert 1 ≤ ndims(x) ≤ 2 - @assert L ≤ maxtransformlevels(x) || throw(ArgumentError("Too many transform levels (length(x) < 2^L")) + @assert L ≤ maxtransformlevels(x) || throw(ArgumentError("Too many transform levels (length(x) < 2^L)")) @assert L ≥ 1 || throw(ArgumentError("L must be ≥ 1")) # Setup sz = size(x) @@ -112,7 +112,7 @@ function sdwt!(xw::AbstractArray{T,2}, L::Integer = maxtransformlevels(x)) where T<:Number # Sanity check @assert L ≤ maxtransformlevels(x) || - throw(ArgumentError("Too many transform levels (length(x) < 2^L")) + throw(ArgumentError("Too many transform levels (length(x) < 2^L)")) @assert L ≥ 1 || throw(ArgumentError("L must be ≥ 1")) # Setup @@ -793,7 +793,7 @@ function swpd(x::AbstractArray{T}, # Sanity check @assert 1 ≤ ndims(x) ≤ 2 @assert L ≤ maxtransformlevels(x) || - throw(ArgumentError("Too many transform levels (length(x) < 2^L")) + throw(ArgumentError("Too many transform levels (length(x) < 2^L)")) @assert L ≥ 1 || throw(ArgumentError("L must be ≥ 1")) # Setup sz = size(x) # Signal size @@ -843,7 +843,7 @@ function swpd!(xw::AbstractArray{T,2}, L::Integer = maxtransformlevels(x)) where T<:Number # Sanity check @assert L <= maxtransformlevels(x) || - throw(ArgumentError("Too many transform levels (length(x) < 2^L")) + throw(ArgumentError("Too many transform levels (length(x) < 2^L)")) @assert L >= 1 || throw(ArgumentError("L must be >= 1")) # Setup @@ -1201,4 +1201,4 @@ end include("swt/swt_one_level.jl") include("swt/swt_all.jl") -end # end module \ No newline at end of file +end # end module