Ticket #14054: trac_14054-fix-rigged-list.patch

File trac_14054-fix-rigged-list.patch, 1.6 KB (added by jdemeyer, 7 years ago)

Sort output of RiggedConfigurations?.list(), to make it reproducible on different machines

  • sage/combinat/rigged_configurations/rigged_configurations.py

    # HG changeset patch
    # User Simon King <simon.king@uni-jena.de>
    # Date 1362484420 -3600
    # Node ID 35b2b2cf65b2c14d8cb43005a78212cd60f2629a
    # Parent  4c9cd6982ce0f55ddaf1fb1cb73827c537f52023
    #14054: Test against the *sorted* output of RiggedConfigurations.list()
    
    diff --git a/sage/combinat/rigged_configurations/rigged_configurations.py b/sage/combinat/rigged_configurations/rigged_configurations.py
    a b  
    4545    Rigged configurations of type ['A', 3, 1] and factors ((2, 1),)
    4646    sage: RC.cardinality()
    4747    6
    48     sage: RC.list()
     48    sage: sorted(RC.list())
    4949    [
    5050    (/)
    5151    <BLANKLINE>
     
    5555    ,
    5656    (/)
    5757    <BLANKLINE>
     58    0[ ]0
     59    <BLANKLINE>
     60    -1[ ]-1
     61    ,
     62    (/)
     63    <BLANKLINE>
    5864    -1[ ]-1
    5965    <BLANKLINE>
    6066    (/)
    6167    ,
    62     (/)
    63     <BLANKLINE>
    64     0[ ]0
    65     <BLANKLINE>
    66     -1[ ]-1
    67     ,
    6868    -1[ ]-1
    6969    <BLANKLINE>
    7070    0[ ]0
    7171    <BLANKLINE>
    7272    (/)
    7373    ,
     74    0[ ]0
     75    <BLANKLINE>
     76    -1[ ]-1
     77    -1[ ]-1
     78    <BLANKLINE>
     79    0[ ]0
     80    ,
    7481    -1[ ]-1
    7582    <BLANKLINE>
    7683    1[ ]1
    7784    <BLANKLINE>
    7885    -1[ ]-1
    79     ,
    80     0[ ]0
    81     <BLANKLINE>
    82     -1[ ]-1
    83     -1[ ]-1
    84     <BLANKLINE>
    85     0[ ]0
    8686    ]
    8787
    8888A rigged configuration element with all riggings equal to the vacancy numbers can be created as follows::
     
    589589        EXAMPLES::
    590590
    591591            sage: RC = HighestWeightRiggedConfigurations(['D', 4, 1], [[2, 2]])
    592             sage: RC.list()
     592            sage: sorted(RC.list())
    593593            [
    594594            (/)
    595595            <BLANKLINE>