#13204: Element construction for CrystalOfTableaux should be robust versus
int's
---------------------------------+------------------------------------------
Reporter: nthiery | Owner: sage-combinat
Type: defect | Status: new
Priority: major | Milestone: sage-5.2
Component: combinatorics | Keywords:
Work issues: | Report Upstream: N/A
Reviewers: Nicolas M. ThiƩry | Authors: Anne Schilling
Merged in: | Dependencies:
Stopgaps: |
---------------------------------+------------------------------------------
When constructing elements of a crystal of tableaux, the entries are
converted to crystal letters if they are not yet such::
{{{
sage: T = CrystalOfTableaux(['A',3], shape = [2,2])
sage: t = T(list=[3,1,4,2])
sage: t
[[1, 2], [3, 4]]
sage: type(t[0])
<class
'sage.combinat.crystals.letters.ClassicalCrystalOfLetters_with_category.element_class'>
sage: type(t[1])
<class
'sage.combinat.crystals.letters.ClassicalCrystalOfLetters_with_category.element_class'>
}}}
However this is currently not the case if the entries are plain int's::
{{{
sage: t = T(list=[int(3),1,4,2])
sage: type(t[0])
<type 'int'>
sage: type(t[1])
<type 'sage.rings.integer.Integer'>
}}}
Possible fix: have CrystalOfTableauxElement.__init__ check whether
list[0] is not an instance of parent.letters.element_class instead of
testing for an Integer.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13204>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.