Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Update to py3. Fix doctests.
Browse files Browse the repository at this point in the history
  • Loading branch information
physicstravels committed Apr 29, 2020
1 parent a5bc48f commit 5438494
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sage/combinat/root_system/weyl_characters.py
Expand Up @@ -10,6 +10,7 @@
# ****************************************************************************
from __future__ import print_function

from functools import reduce
import sage.combinat.root_system.branching_rules
from operator import mul
from sage.categories.all import Category, Algebras, AlgebrasWithBasis
Expand Down Expand Up @@ -2523,10 +2524,10 @@ def s_matrix(self):
S = matrix(self.q_field(), len(ord_basis))
for i in rng:
for j in rng:
S[i,j] = self.s_ij(ord_basis[i], ord_basis[j], fusion_mats[i])
S[i,j] = self.s_ij(ord_basis[i], ord_basis[j])
return S

def fusion_labels(self, labels=None):
def fusion_labels(self, labels=None, key=str):
"""
Set the labels of the basis.
Expand Down Expand Up @@ -2647,7 +2648,7 @@ def q_dimension(self):
sage: B22=FusionRing("B2",2)
sage: [(b.q_dimension())^2 for b in B22.basis()]
[1, 5, 4, 1, 5, 4]
[1, 4, 5, 1, 5, 4]
"""
if not self.is_simple_object():
raise ValueError("quantum twist is only available for simple objects of a FusionRing")
Expand Down

0 comments on commit 5438494

Please sign in to comment.