Skip to content

Commit 17d457d

Browse files
committed
stay consistent in blockedunitrange_getindices
1 parent e44876a commit 17d457d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

NDTensors/src/lib/GradedAxes/src/gradedunitrangedual.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ function blockedunitrange_getindices(
5858
a::GradedUnitRangeDual, indices::Vector{<:BlockIndexRange{1}}
5959
)
6060
a_indices = getindex(nondual(a), indices)
61-
return mortar([label_dual(b) for b in blocks(a_indices)])
61+
v = mortar(dual.(blocks(a_indices)))
62+
# flip v to stay consistent with other cases where axes(v) are used
63+
return flip_blockvector(v)
6264
end
6365

6466
function blockedunitrange_getindices(

0 commit comments

Comments
 (0)