Skip to content

Commit

Permalink
housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
ogauthe committed Nov 5, 2024
1 parent 0953484 commit 0c6f7e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
end

# Test case when all axes are dual.
@testset "dual BlockedOneTo" begin
r = gradedrange([U1(0) => 2, U1(1) => 2])
@testset "dual GradedOneTo" begin
r = gradedrange([U1(-1) => 2, U1(1) => 2])
a = BlockSparseArray{elt}(dual(r), dual(r))
@views for i in [Block(1, 1), Block(2, 2)]
a[i] = randn(elt, size(a[i]))
Expand Down
2 changes: 1 addition & 1 deletion NDTensors/src/lib/GradedAxes/src/gradedunitrange.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct GradedOneTo{T,BlockLasts<:Vector{T}} <: AbstractGradedUnitRange{T,BlockLa
end
end

function Base.show(io::IO, mimetype::MIME"text/plain", g::AbstractGradedUnitRange)
function Base.show(io::IO, ::MIME"text/plain", g::AbstractGradedUnitRange)
v = map(b -> label(b) => unlabel(b), blocks(g))
println(io, typeof(g))
return print(io, join(repr.(v), '\n'))
Expand Down

0 comments on commit 0c6f7e5

Please sign in to comment.