#14234: Restructuring Diagram/Partition Algebras to match category structure
-------------------------------------+-------------------------------------
       Reporter:  ghseeli            |        Owner:  AlexGhitza
           Type:  enhancement        |       Status:  needs_work
       Priority:  minor              |    Milestone:  sage-5.12
      Component:  algebra            |   Resolution:
       Keywords:  Partition          |    Merged in:
  algebra, diagram algebra, days38,  |    Reviewers:  Travis Scrimshaw,
  days40                             |  Darij Grinberg
        Authors:  Stephen Doty,      |  Work issues:
  Aaron Lauve, George H. Seelinger   |       Commit:
Report Upstream:  N/A                |     Stopgaps:
         Branch:                     |
   Dependencies:  #10630             |
-------------------------------------+-------------------------------------
Changes (by jdemeyer):

 * status:  positive_review => needs_work


Comment:

 This `AssertionError` should be fixed (you probably want to raise a
 `ValueError` instead):
 {{{
 sage:
 sage.combinat.diagram_algebras.to_Brauer_partition([[1,2,3],[-1,-2]])
 ---------------------------------------------------------------------------
 AssertionError                            Traceback (most recent call
 last)
 <ipython-input-1-8bfe84be2a91> in <module>()
 ----> 1
 
sage.combinat.diagram_algebras.to_Brauer_partition([[Integer(1),Integer(2),Integer(3)],[-Integer(1),-Integer(2)]])

 /mazur/release/merger/sage-5.12.beta1/local/lib/python2.7/site-
 packages/sage/combinat/diagram_algebras.pyc in to_Brauer_partition(l, k)
    1419         L2.append(list(i))
    1420     for i in L2:
 -> 1421         assert len(i) < 3
    1422         if (len(i) == 2):
    1423             paired.append(i)

 AssertionError:
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/14234#comment:27>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to