Skip to content

Commit ffbd4e0

Browse files
committed
make isone great again in blocksectors
1 parent 0b4f890 commit ffbd4e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bimodulesector.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ function TensorKit.blocksectors(W::TensorMapSpace{S,N₁,N₂}) where
284284
for i in 1:size(A4Object)) # have to return all units b/c no info on W in this case
285285
elseif N₁ == 0
286286
@assert N₂ != 0 "one of Type A4Object doesn't exist"
287-
return filter!(c -> c == leftone(c) == rightone(c), collect(blocksectors(dom)))
287+
return filter!(isone, collect(blocksectors(dom)))
288288
elseif N₂ == 0
289289
@assert N₁ != 0 "one of Type A4Object doesn't exist"
290-
return filter!(c -> c == leftone(c) == rightone(c), collect(blocksectors(codom)))
290+
return filter!(isone, collect(blocksectors(codom)))
291291
elseif N₂ <= N₁ # keep intersection
292292
return filter!(c -> hasblock(codom, c), collect(blocksectors(dom)))
293293
else

0 commit comments

Comments
 (0)