Skip to content

Commit 90cad20

Browse files
committed
simplify reduce_style
1 parent e63b3e0 commit 90cad20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function categories_fusion_rule(cats1, cats2)
7777
end
7878

7979
function recover_style(T::Type, fused)
80-
style = reduce(combine_styles, SymmetryStyle.(fused); init=AbelianStyle())
80+
style = SymmetryStyle(T)
8181
return recover_category_product_type(style, T, fused)
8282
end
8383

@@ -156,7 +156,7 @@ function fusion_rule(::AbelianStyle, ::TrivialSector, ::TrivialSector)
156156
return CategoryProduct(())
157157
end
158158

159-
# TrivialSectorStyle acts as trivial on any AbstractCategory, not just CategoryProduct
159+
# TrivialSector acts as trivial on any AbstractCategory, not just CategoryProduct
160160
function fusion_rule(::NotAbelianStyle, ::TrivialSector, c::AbstractCategory)
161161
return to_gradedrange(c)
162162
end

0 commit comments

Comments
 (0)