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

Commit d585a44

Browse files
author
Travis Scrimshaw
committed
Made tests faster.
1 parent 036984d commit d585a44

File tree

2 files changed

+27
-28
lines changed

2 files changed

+27
-28
lines changed

src/sage/combinat/rigged_configurations/kr_tableaux.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,10 @@ def __init__(self, cartan_type, r, s):
263263
264264
EXAMPLES::
265265
266-
sage: KRT = KirillovReshetikhinTableaux(['A', 4, 1], 2, 3); KRT
267-
Kirillov-Reshetikhin tableaux of type ['A', 4, 1] and shape (2, 3)
268-
sage: TestSuite(KRT).run() # long time (4s on sage.math, 2013)
269-
sage: KRT = KirillovReshetikhinTableaux(['D', 4, 1], 2, 3); KRT
270-
Kirillov-Reshetikhin tableaux of type ['D', 4, 1] and shape (2, 3)
271-
sage: TestSuite(KRT).run() # long time (53s on sage.math, 2013)
266+
sage: KRT = KirillovReshetikhinTableaux(['A', 4, 1], 2, 2)
267+
sage: TestSuite(KRT).run() # long time
268+
sage: KRT = KirillovReshetikhinTableaux(['D', 4, 1], 2, 2)
269+
sage: TestSuite(KRT).run() # long time
272270
sage: KRT = KirillovReshetikhinTableaux(['D', 4, 1], 4, 1); KRT
273271
Kirillov-Reshetikhin tableaux of type ['D', 4, 1] and shape (4, 1)
274272
sage: TestSuite(KRT).run()

src/sage/combinat/rigged_configurations/rigged_configurations.py

+23-22
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,24 @@ class RiggedConfigurations(Parent, UniqueRepresentation):
211211
If on the other hand we also want to specify the riggings, this can be
212212
achieved as follows::
213213
214+
sage: RC = RiggedConfigurations(['A', 3, 1], [[3, 2], [1, 2], [1, 1]])
215+
sage: RC(partition_list=[[2],[2],[2]])
216+
<BLANKLINE>
217+
1[ ][ ]1
218+
<BLANKLINE>
219+
0[ ][ ]0
220+
<BLANKLINE>
221+
0[ ][ ]0
222+
sage: RC(partition_list=[[2],[2],[2]], rigging_list=[[0],[0],[0]])
223+
<BLANKLINE>
224+
1[ ][ ]0
225+
<BLANKLINE>
226+
0[ ][ ]0
227+
<BLANKLINE>
228+
0[ ][ ]0
229+
230+
A larger example::
231+
214232
sage: RC = RiggedConfigurations(['D', 7, 1], [[3,3],[5,2],[4,3],[2,3],[4,4],[3,1],[1,4],[2,2]])
215233
sage: elt = RC(partition_list=[[2],[3,2,1],[2,2,1,1],[2,2,1,1,1,1],[3,2,1,1,1,1],[2,1,1],[2,2]],
216234
....: rigging_list=[[2],[1,0,0],[4,1,2,1],[1,0,0,0,0,0],[0,1,0,0,0,0],[0,0,0],[0,0]])
@@ -337,33 +355,17 @@ def __init__(self, cartan_type, B):
337355
338356
EXAMPLES::
339357
340-
sage: RC = RiggedConfigurations(['A', 3, 1], [[3, 2], [1, 2], [1, 1]])
341-
sage: RC(partition_list=[[2],[2],[2]])
342-
<BLANKLINE>
343-
1[ ][ ]1
344-
<BLANKLINE>
345-
0[ ][ ]0
346-
<BLANKLINE>
347-
0[ ][ ]0
348-
sage: RC(partition_list=[[2],[2],[2]], rigging_list=[[0],[0],[0]])
349-
<BLANKLINE>
350-
1[ ][ ]0
351-
<BLANKLINE>
352-
0[ ][ ]0
353-
<BLANKLINE>
354-
0[ ][ ]0
355-
sage: RC
356-
Rigged configurations of type ['A', 3, 1] and factor(s) ((3, 2), (1, 2), (1, 1))
357-
sage: TestSuite(RC).run() # long time (4s on sage.math, 2012)
358+
sage: RC = RiggedConfigurations(['A', 3, 1], [[3,1], [1,2]])
359+
sage: TestSuite(RC).run() # long time
358360
sage: RC = RiggedConfigurations(['A',1,1], [[1,1], [1,1]])
359361
sage: TestSuite(RC).run()
360362
sage: RC = RiggedConfigurations(['A',2,1], [[1,1], [2,1]])
361363
sage: TestSuite(RC).run()
362-
sage: RC = RiggedConfigurations(['D', 4, 1], [[2,2]])
364+
sage: RC = RiggedConfigurations(['D', 4, 1], [[2,1], [1,1]])
363365
sage: TestSuite(RC).run() # long time
364366
sage: RC = RiggedConfigurations(['D', 4, 1], [[3,1]])
365367
sage: TestSuite(RC).run() # long time
366-
sage: RC = RiggedConfigurations(['D', 4, 1], [[4,3]])
368+
sage: RC = RiggedConfigurations(['D', 4, 1], [[4,2]])
367369
sage: TestSuite(RC).run() # long time
368370
"""
369371
self._cartan_type = cartan_type
@@ -960,8 +962,7 @@ def __init__(self, cartan_type, dims):
960962
961963
sage: RC = RiggedConfigurations(['C',2,1], [[1,1]])
962964
sage: TestSuite(RC).run()
963-
sage: RC = RiggedConfigurations(['C',2,1], [[1,2],[1,1],[2,1]]); RC
964-
Rigged configurations of type ['C', 2, 1] and factor(s) ((1, 2), (1, 1), (2, 1))
965+
sage: RC = RiggedConfigurations(['C',2,1], [[1,2],[2,1]])
965966
sage: TestSuite(RC).run() # long time
966967
sage: RC = RiggedConfigurations(['B',3,1], [[3,1],[1,1]])
967968
sage: TestSuite(RC).run() # long time

0 commit comments

Comments
 (0)