Skip to content

Commit 225acf7

Browse files
author
Matthias Koeppe
committed
sage.combinat.root_system: Fixups for modularization changes
1 parent f6e599a commit 225acf7

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

src/sage/combinat/root_system/ambient_space.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ def _test_norm_of_simple_roots(self, **options):
119119
T = self.cartan_type()
120120
try:
121121
D = T.symmetrizer()
122-
alpha = self.simple_roots(sort=False)
122+
alpha = self.simple_roots()
123123
DD = T.dynkin_diagram()
124124
except ImportError: # Dynkin diagrams need sage.graphs
125125
return
126-
for C in DD.connected_components():
126+
for C in DD.connected_components(sort=False):
127127
tester.assertEqual(len( set( alpha[i].scalar(alpha[i]) / D[i] for i in C ) ), 1)
128128

129129
# FIXME: attribute or method?

src/sage/combinat/root_system/non_symmetric_macdonald_polynomials.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,11 +652,11 @@ class NonSymmetricMacdonaldPolynomials(CherednikOperatorsEigenvectors):
652652
sage: La = R.weight_space().basis()
653653
sage: LS = crystals.ProjectedLevelZeroLSPaths(2*La[1])
654654
sage: (E[-2*omega[1]].map_coefficients(lambda x: x.subs(t=0)) # long time (15s)
655-
....: == LS.one_dimensional_configuration_sum(q)
655+
....: == LS.one_dimensional_configuration_sum(q))
656656
True
657657
sage: LS = crystals.ProjectedLevelZeroLSPaths(La[1] + La[2])
658-
sage: (E[-omega[1]-omega[2]].map_coefficients(lambda x: x.subs(t=0)) # long time (45s)
659-
....: == LS.one_dimensional_configuration_sum(q)
658+
sage: (E[-omega[1] - omega[2]].map_coefficients(lambda x: x.subs(t=0)) # long time (45s)
659+
....: == LS.one_dimensional_configuration_sum(q))
660660
True
661661
662662
::

src/sage/combinat/root_system/root_lattice_realization_algebras.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def some_elements(self):
5252
5353
sage: A = RootSystem(["A",2,1]).ambient_space().algebra(QQ)
5454
sage: A.some_elements()
55-
[B[2*e[0] + 2*e[1] + 3*e[2]]]
55+
[B[2*e[0] + 2*e[1] + 3*e[2]]...]
5656
sage: A.some_elements() # needs sage.graphs
5757
[B[2*e[0] + 2*e[1] + 3*e[2]],
5858
B[-e[0] + e[2] + e['delta']],
@@ -64,7 +64,13 @@ def some_elements(self):
6464
6565
sage: A = RootSystem(["B",2]).weight_space().algebra(QQ)
6666
sage: A.some_elements()
67-
[B[2*Lambda[1] + 2*Lambda[2]], B[Lambda[1]], B[Lambda[2]]]
67+
[B[2*Lambda[1] + 2*Lambda[2]], ... B[Lambda[1]], B[Lambda[2]]]
68+
sage: A.some_elements() # needs sage.graphs
69+
[B[2*Lambda[1] + 2*Lambda[2]],
70+
B[2*Lambda[1] - 2*Lambda[2]],
71+
B[-Lambda[1] + 2*Lambda[2]],
72+
B[Lambda[1]],
73+
B[Lambda[2]]]
6874
"""
6975
return [self.monomial(weight) for weight in self.basis().keys().some_elements()]
7076

src/sage/combinat/root_system/weight_space.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class WeightSpace(CombinatorialFreeModule):
133133
TESTS::
134134
135135
sage: for ct in (CartanType.samples(crystallographic=True) # needs sage.graphs
136-
....: + [CartanType(["A",2], ["C",5,1])]:
136+
....: + [CartanType(["A",2], ["C",5,1])]):
137137
....: TestSuite(ct.root_system().weight_lattice()).run()
138138
....: TestSuite(ct.root_system().weight_space()).run()
139139
sage: for ct in CartanType.samples(affine=True): # needs sage.graphs

0 commit comments

Comments
 (0)