Skip to content

Commit 64c07a2

Browse files
committed
code review
1 parent 0285d36 commit 64c07a2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/tensors/abstracttensor.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ Return a view into the data of `t` corresponding to the splitting - fusion tree
318318
`(f₁, f₂)`. In particular, this is an `AbstractArray{T}` with `T = scalartype(t)`, of size
319319
`(dims(codomain(t), f₁.uncoupled)..., dims(codomain(t), f₂.uncoupled)...)`.
320320
321-
Whenever `FusionStyle(sectortype(t))`, it is also possible to provide only the external
322-
`sectors`, in which case the fusion tree pair will be constructed automatically.
321+
Whenever `FusionStyle(sectortype(t)) isa UniqueFusion` , it is also possible to provide only
322+
the external `sectors`, in which case the fusion tree pair will be constructed automatically.
323323
"""
324324

325325
@doc """
@@ -669,7 +669,8 @@ function Base.show(io::IO, ::MIME"text/plain", t::AbstractTensorMap)
669669

670670
# 2) show spaces
671671
# println(io, " space(t):")
672-
print(io, " ", space(t))
672+
println(io, " codomain: ", codomain(t))
673+
println(io, " domain: ", domain(t))
673674

674675
# 3) [optional]: show data
675676
get(io, :compact, true) && return nothing

0 commit comments

Comments
 (0)