AxisKeys.jl icon indicating copy to clipboard operation
AxisKeys.jl copied to clipboard

Display formatting error

Open LilithHafner opened this issue 4 years ago • 1 comments

When displaying only three slices, but there are only two slices along the diagonal, a couple newlines are missing:

julia> rand(2,2,2,2,2,2,2) |> wrapdims
7-dimensional KeyedArray(...) with keys:
↓   2-element OneTo{Int}
→   2-element OneTo{Int}
â—ª   2-element OneTo{Int}
â–¨   2-element OneTo{Int}
â–¨   2-element OneTo{Int}
â–¨   2-element OneTo{Int}
â–¨   2-element OneTo{Int}
And data, 2×2×2×2×2×2×2 Array{Float64, 7}:
[showing 3 of 32 slices]
[:, :, 1, 1, 1, 1, 1] ~ (:, :, 1, 1, 1, 1, 1):
      (1)         (2)
 (1)    0.143204    0.251809
 (2)    0.432273    0.776817

[:, :, 2, 2, 2, 2, 2] ~ (:, :, 2, 2, 2, 2, 2):
      (1)          (2)
 (1)    0.10484      0.153142                                                     #===================#
 (2)    0.0897166    0.766894[:, :, 2, 2, 2, 2, 2] ~ (:, :, 2, 2, 2, 2, 2): # <---- Here is the problem
      (1)          (2)                                                            #===================#
 (1)    0.10484      0.153142
 (2)    0.0897166    0.766894

julia> julia> using AxisKeys; rand(2,2,2,2,2,3,2) |> wrapdims
7-dimensional KeyedArray(...) with keys:
↓   2-element OneTo{Int}
→   2-element OneTo{Int}
â—ª   2-element OneTo{Int}
â–¨   2-element OneTo{Int}
â–¨   2-element OneTo{Int}
â–¨   3-element OneTo{Int}
â–¨   2-element OneTo{Int}
And data, 2×2×2×2×2×3×2 Array{Float64, 7}:
[showing 3 of 48 slices]
[:, :, 1, 1, 1, 1, 1] ~ (:, :, 1, 1, 1, 1, 1):
      (1)         (2)
 (1)    0.142343    0.701584
 (2)    0.653471    0.504314

[:, :, 2, 2, 2, 2, 2] ~ (:, :, 2, 2, 2, 2, 2):
      (1)         (2)
 (1)    0.782924    0.948197
 (2)    0.807271    0.14883

[:, :, 2, 2, 2, 3, 2] ~ (:, :, 2, 2, 2, 3, 2):
      (1)          (2)
 (1)    0.0485772    0.306637
 (2)    0.58494      0.847874```

LilithHafner avatar Dec 19 '21 03:12 LilithHafner

Thanks, I can reproduce this, it's a bug of some sort.

mcabbott avatar Dec 19 '21 19:12 mcabbott