Skip to content

Commit 1be36e5

Browse files
committed
lvls to levels
1 parent b7511a6 commit 1be36e5

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/spaces/homspace.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ function LinearAlgebra.transpose(W::HomSpace, (p₁, p₂)::Index2Tuple = _trans
160160
return select(W, (p₁, p₂))
161161
end
162162

163-
function braid(W::HomSpace, (p₁, p₂)::Index2Tuple, lvls::IndexTuple)
163+
function braid(W::HomSpace, (p₁, p₂)::Index2Tuple, levels::IndexTuple)
164164
p = (p₁..., p₂...)
165-
TupleTools.isperm(p) && length(p) == numind(W) == length(lvls) ||
166-
throw(ArgumentError("$((p₁, p₂)), $lvls is not a valid braiding for $(W)"))
165+
TupleTools.isperm(p) && length(p) == numind(W) == length(levels) ||
166+
throw(ArgumentError("$((p₁, p₂)), $levels is not a valid braiding for $(W)"))
167167
return select(W, (p₁, p₂))
168168
end
169169

src/tensors/indexmanipulations.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,13 +426,13 @@ spacecheck_transform(f, tdst::AbstractTensorMap, tsrc::AbstractTensorMap, args..
426426
)
427427
return nothing
428428
end
429-
@noinline function spacecheck_transform(::typeof(braid), Vdst::TensorMapSpace, Vsrc::TensorMapSpace, p::Index2Tuple, lvls::IndexTuple)
429+
@noinline function spacecheck_transform(::typeof(braid), Vdst::TensorMapSpace, Vsrc::TensorMapSpace, p::Index2Tuple, levels::IndexTuple)
430430
spacetype(Vdst) == spacetype(Vsrc) || throw(SectorMismatch("incompatible sector types"))
431-
braid(Vsrc, p, lvls) == Vdst ||
431+
braid(Vsrc, p, levels) == Vdst ||
432432
throw(
433433
SpaceMismatch(
434434
lazy"""
435-
incompatible spaces for `braid(Vsrc, $p, $lvls) -> Vdst`
435+
incompatible spaces for `braid(Vsrc, $p, $levels) -> Vdst`
436436
Vsrc = $Vsrc
437437
Vdst = $Vdst
438438
"""

0 commit comments

Comments
 (0)