Skip to content

Commit

Permalink
simplify reduce_style
Browse files Browse the repository at this point in the history
  • Loading branch information
ogauthe committed Oct 3, 2024
1 parent e63b3e0 commit 90cad20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NDTensors/src/lib/Sectors/src/category_product.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function categories_fusion_rule(cats1, cats2)
end

function recover_style(T::Type, fused)
style = reduce(combine_styles, SymmetryStyle.(fused); init=AbelianStyle())
style = SymmetryStyle(T)
return recover_category_product_type(style, T, fused)
end

Expand Down Expand Up @@ -156,7 +156,7 @@ function fusion_rule(::AbelianStyle, ::TrivialSector, ::TrivialSector)
return CategoryProduct(())
end

# TrivialSectorStyle acts as trivial on any AbstractCategory, not just CategoryProduct
# TrivialSector acts as trivial on any AbstractCategory, not just CategoryProduct
function fusion_rule(::NotAbelianStyle, ::TrivialSector, c::AbstractCategory)
return to_gradedrange(c)
end
Expand Down

0 comments on commit 90cad20

Please sign in to comment.