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 1/3] 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 From 3ea21cd23c92aff96565f72a4594e3ae116070f9 Mon Sep 17 00:00:00 2001 From: Adam Wysokinski Date: Sun, 22 Sep 2024 13:55:17 +0200 Subject: [PATCH 2/3] update: Project.toml update: acwt_one_level.jl --- Project.toml | 14 +++++++------- src/mod/acwt/acwt_one_level.jl | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Project.toml b/Project.toml index 3cdf6cc..8ab8042 100644 --- a/Project.toml +++ b/Project.toml @@ -19,13 +19,13 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" Wavelets = "29a6e085-ba6d-5f35-a997-948ac2efa89a" [compat] -AverageShiftedHistograms = "0.8.6" +AverageShiftedHistograms = "0.8.9" Combinatorics = "1" -Distributions = "0.24, 0.25" -ImageQualityIndexes = "0.2, 0.3" -Parameters = "0.12.2" +Distributions = "0.25" +ImageQualityIndexes = "0.3" +Parameters = "0.12" Plots = "1.20" Reexport = "1.1" -StatsBase = "0.33.9" -Wavelets = "0.9.3" -julia = "1.6, 1.7" +StatsBase = "0.34" +Wavelets = "0.10" +julia = "1.6" diff --git a/src/mod/acwt/acwt_one_level.jl b/src/mod/acwt/acwt_one_level.jl index 548b1af..2865824 100644 --- a/src/mod/acwt/acwt_one_level.jl +++ b/src/mod/acwt/acwt_one_level.jl @@ -102,8 +102,8 @@ function acdwt_step!(w₁::AbstractVector{T}, w₂::AbstractVector{T}, v::AbstractVector{T}, d::Integer, - h::Array{T,1}, - g::Array{T,1}) where {T<:Number, S<:Number} + h::Vector{S}, + g::Vector{S}) where {T<:Number, S<:Number} # Sanity check @assert length(w₁) == length(w₂) == length(v) @assert length(h) == length(g) From be1d9fa65066616f0c90ec44759b391201ea0af1 Mon Sep 17 00:00:00 2001 From: Adam Wysokinski Date: Fri, 4 Oct 2024 12:35:13 +0200 Subject: [PATCH 3/3] update: version 0.2.2 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 8ab8042..307a248 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "WaveletsExt" uuid = "8f464e1e-25db-479f-b0a5-b7680379e03f" authors = ["Zeng Fung Liew ", "Shozen Dan "] -version = "0.2.1" +version = "0.2.2" [deps] AverageShiftedHistograms = "77b51b56-6f8f-5c3a-9cb4-d71f9594ea6e"