On 2/24/12 4:40 PM, Nicolas M. Thiery wrote:
> On Fri, Feb 24, 2012 at 04:29:37PM -0800, Anne Schilling wrote:
>> ClonableList.__init__(self, parent, T)
>>
>> Is this allowed? I get the following error message:
>>
>> sage: strongTableau([[-1, -2, -3], [3]],2,[3] )
> ...
>> /Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/structure/list_clone.so
>>  in sage.structure.list_clone.ClonableArray.check 
>> (sage/structure/list_clone.c:4906)()
>>
>> AssertionError: This should never be called, please overload
> 
> Have you implemented the ``check`` method in your class?

Hmm, now yes. And then I am back to the hashable list:

sage: strongTableau( [[-1, -2, -3], [3]], 2, [3] )
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/Applications/sage-5.0.beta3/devel/sage-combinat/sage/combinat/posets/<ipython 
console> in <module>()

/Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/misc/classcall_metaclass.pyc
 in __call__(cls, *args, **options)
    272         """
    273         if '__classcall_private__' in cls.__dict__:
--> 274             return cls.__classcall_private__(cls, *args, **options)
    275         elif hasattr(cls, "__classcall__"):
    276             return cls.__classcall__(cls, *args, **options)

/Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/combinat/k_tableau.pyc
 in __classcall_private__(cls, T, k, mu)
    192         if mu is not None:
    193             mu = tuple(mu)
--> 194         return strongTableaux(k)(T, mu)
    195
    196     def check(self):

/Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/structure/parent.so
 in sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7908)()

/Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/structure/coerce_maps.so
 in sage.structure.coerce_maps.DefaultConvertMap_unique._call_with_args 
(sage/structure/coerce_maps.c:3729)()

/Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/structure/coerce_maps.so
 in sage.structure.coerce_maps.DefaultConvertMap_unique._call_with_args 
(sage/structure/coerce_maps.c:3598)()

/Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/combinat/k_tableau.pyc
 in _element_constructor_(self, lst, mu)
    489         if not isinstance(lst, (list, tuple)):
    490             raise TypeError, "Input should be a list or tuple."
--> 491         return self.element_class(self, lst, mu)
    492
    493     def _repr_( self ):

/Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/misc/classcall_metaclass.pyc
 in __call__(cls, *args, **options)
    276             return cls.__classcall__(cls, *args, **options)
    277         else:
--> 278             return type.__call__(cls, *args, **options)
    279
    280     def __contains__(cls, x):

/Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/combinat/k_tableau.pyc
 in __init__(self, parent, T, k, mu)
    160             if len(tijseq)<len(markings):
    161                 raise ValueError, "Unable to parse strong marked 
tableau : %s"%T
--> 162             self._tableau = parent.transpositions_to_strongTableau( 
tijseq )
    163             self._size = len(tijseq)
    164             self._content = Composition([markings.count(v) for v in 
range(1,max(markings)+1)])

/Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/combinat/k_tableau.pyc
 in transpositions_to_strongTableau(self, transeq)
    594         we can assume that the first of these is [0,1] (although more 
generally we could consider skew strong tableaux)
    595         """
--> 596         out = strongTableau(self._k,[])
    597         for i in range(1,len(transeq)+1):
    598             out = out.left_action(transeq[-i])

/Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/misc/classcall_metaclass.pyc
 in __call__(cls, *args, **options)
    272         """
    273         if '__classcall_private__' in cls.__dict__:
--> 274             return cls.__classcall_private__(cls, *args, **options)
    275         elif hasattr(cls, "__classcall__"):
    276             return cls.__classcall__(cls, *args, **options)

/Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/combinat/k_tableau.pyc
 in __classcall_private__(cls, T, k, mu)
    192         if mu is not None:
    193             mu = tuple(mu)
--> 194         return strongTableaux(k)(T, mu)
    195
    196     def check(self):

/Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/misc/classcall_metaclass.pyc
 in __call__(cls, *args, **options)
    272         """
    273         if '__classcall_private__' in cls.__dict__:
--> 274             return cls.__classcall_private__(cls, *args, **options)
    275         elif hasattr(cls, "__classcall__"):
    276             return cls.__classcall__(cls, *args, **options)

/Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/combinat/k_tableau.pyc
 in __classcall_private__(cls, k)
    460
    461         """
--> 462         return super(strongTableaux, cls).__classcall__(cls, k)
    463
    464     def __init__( self, k ):

/Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/misc/cachefunc.so
 in sage.misc.cachefunc.CachedFunction.__call__ (sage/misc/cachefunc.c:2396)()

TypeError: unhashable type: 'list'


Cheers,

Anne

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to