Skip to content

Commit 3ba966e

Browse files
committed
avoid sector
1 parent a566784 commit 3ba966e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

NDTensors/src/lib/Sectors/src/category_product.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ end
2929
# use map instead of broadcast to support both Tuple and NamedTuple
3030
GradedAxes.dual(s::CategoryProduct) = CategoryProduct(map(dual, categories(s)))
3131

32-
trivial(type::Type{<:CategoryProduct}) = sector(categories_trivial(categories_type(type)))
32+
function trivial(type::Type{<:CategoryProduct})
33+
return CategoryProduct(categories_trivial(categories_type(type)))
34+
end
3335

3436
# =================================== Base interface =====================================
3537
function Base.:(==)(A::CategoryProduct, B::CategoryProduct)
@@ -158,7 +160,7 @@ end
158160

159161
# Empty case
160162
function fusion_rule(::AbelianStyle, ::TrivialSector, ::TrivialSector)
161-
return sector()
163+
return CategoryProduct(())
162164
end
163165

164166
# TrivialSectorStyle acts as trivial on any AbstractCategory, not just CategoryProduct

0 commit comments

Comments
 (0)