From 0bdfefbeff07e28b32a43ee838f0234276317401 Mon Sep 17 00:00:00 2001 From: "Kevin P. O'Brien" Date: Tue, 29 Oct 2024 22:35:35 -0400 Subject: [PATCH 1/4] fix iterate error on nightly --- src/show.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/show.jl b/src/show.jl index 6aca95a..94700cf 100644 --- a/src/show.jl +++ b/src/show.jl @@ -163,6 +163,7 @@ Base.alignment(io::IO, x::ShowWith) = alignment(io, x.val) .+ (2,0) # extra bra Base.length(x::ShowWith) = length(string(x.val)) Base.ncodeunits(x::ShowWith) = ncodeunits(string(x.val)) Base.print(io::IO, x::ShowWith) = printstyled(io, string(x.val); x.nt...) +Base.iterate(x::AxisKeys.ShowWith) = nothing # For higher-dim printing, I just want change the [:, :, 1] things, add name/key, # but can't see a way to hook in. So copy this huge function from Base? From 8143623e56c680d678064d606dd92466b41c2eee Mon Sep 17 00:00:00 2001 From: "Kevin P. O'Brien" Date: Tue, 29 Oct 2024 23:04:27 -0400 Subject: [PATCH 2/4] remove unnecessary package name from type --- src/show.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/show.jl b/src/show.jl index 94700cf..01fb4f4 100644 --- a/src/show.jl +++ b/src/show.jl @@ -163,7 +163,7 @@ Base.alignment(io::IO, x::ShowWith) = alignment(io, x.val) .+ (2,0) # extra bra Base.length(x::ShowWith) = length(string(x.val)) Base.ncodeunits(x::ShowWith) = ncodeunits(string(x.val)) Base.print(io::IO, x::ShowWith) = printstyled(io, string(x.val); x.nt...) -Base.iterate(x::AxisKeys.ShowWith) = nothing +Base.iterate(x::ShowWith) = nothing # For higher-dim printing, I just want change the [:, :, 1] things, add name/key, # but can't see a way to hook in. So copy this huge function from Base? From 3854ffafe2ad2de5f3beb45504e673c3b490b3d7 Mon Sep 17 00:00:00 2001 From: Michael Abbott <32575566+mcabbott@users.noreply.github.com> Date: Wed, 30 Oct 2024 12:02:02 -0400 Subject: [PATCH 3/4] Update src/show.jl --- src/show.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/show.jl b/src/show.jl index 01fb4f4..65fea74 100644 --- a/src/show.jl +++ b/src/show.jl @@ -163,7 +163,7 @@ Base.alignment(io::IO, x::ShowWith) = alignment(io, x.val) .+ (2,0) # extra bra Base.length(x::ShowWith) = length(string(x.val)) Base.ncodeunits(x::ShowWith) = ncodeunits(string(x.val)) Base.print(io::IO, x::ShowWith) = printstyled(io, string(x.val); x.nt...) -Base.iterate(x::ShowWith) = nothing +Base.iterate(x::ShowWith) = nothing # fix for https://github.com/mcabbott/AxisKeys.jl/issues/159 # For higher-dim printing, I just want change the [:, :, 1] things, add name/key, # but can't see a way to hook in. So copy this huge function from Base? From 4032bbb8332d25b59beac86391c1a849af280053 Mon Sep 17 00:00:00 2001 From: Michael Abbott <32575566+mcabbott@users.noreply.github.com> Date: Wed, 30 Oct 2024 12:02:35 -0400 Subject: [PATCH 4/4] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 1b9cd00..5a4ff39 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "AxisKeys" uuid = "94b1ba4f-4ee9-5380-92f1-94cde586c3c5" license = "MIT" -version = "0.2.14" +version = "0.2.15" [deps] AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"