Skip to content

Commit 8e8b760

Browse files
committed
more rigorous check in merge
1 parent 0113f73 commit 8e8b760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fusiontrees/manipulations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function merge(f₁::FusionTree{I,N₁}, f₂::FusionTree{I,N₂},
231231
return insertat(f, N₁ + 1, f₂)
232232
end
233233
function merge(f₁::FusionTree{I,0}, f₂::FusionTree{I,0}, c::I, μ) where {I}
234-
isone(c) || # I had this as Nsymbol(f₁.coupled, f₂.coupled, c) > 0, valid?
234+
Nsymbol(f₁.coupled, f₂.coupled, c) == μ == 1 ||
235235
throw(SectorMismatch("cannot fuse sectors $(f₁.coupled) and $(f₂.coupled) to $c"))
236236
return fusiontreedict(I)(f₁ => Fsymbol(c, c, c, c, c, c)[1, 1, 1, 1])
237237
end

0 commit comments

Comments
 (0)