Skip to content

Commit 8d5b989

Browse files
committed
Update blocks to return Pair instead of Tuple
1 parent bfe6333 commit 8d5b989

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tensors/abstractblocktensor/abstracttensormap.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function TensorKit.block(t::AbstractBlockTensorMap, c::Sector)
6363
end
6464

6565
# TODO: this might get fixed once new tensormap is implemented
66-
TensorKit.blocks(t::AbstractBlockTensorMap) = ((c, block(t, c)) for c in blocksectors(t))
66+
TensorKit.blocks(t::AbstractBlockTensorMap) = ((c => block(t, c)) for c in blocksectors(t))
6767
TensorKit.blocksectors(t::AbstractBlockTensorMap) = blocksectors(space(t))
6868
TensorKit.hasblock(t::AbstractBlockTensorMap, c::Sector) = c in blocksectors(t)
6969

0 commit comments

Comments
 (0)