On Thursday, 16 February 2017 15:41:37 UTC+11, Andrew wrote:
>
> Thanks Travis! Obviously I didn't read the documentation well enough as I 
> thought `Facade` was `False` by default -- so I'd tried setting 
> `Facade=True` with no joy.
>
> Cheers,
> Andrew
>
>  
Unfortunately, now it seems that I can't access the elements of the tuple 
directly:

sage: tabs = DisjointUnionEnumeratedSets(Family(Partitions(3), lambda mu: 
cartesian_product([mu.standard_tableaux(),mu.standard_tableaux()])), facade=
False)
sage: s=StandardTableau([[1,2],[3]])
sage: ss=tabs( (s,s) )
sage: ss[0]
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-16-f4126aa9793b> in <module>()
----> 1 ss[Integer(0)]

TypeError: 'sage.structure.element_wrapper.ElementWrapper' object has no 
attribute '__getitem__'
> <ipython-input-16-f4126aa9793b>(1)<module>()
----> 1 ss[Integer(0)]

On the other hand, the following works:


sage: ss.value[0], ss.value[1]
([[1, 2], [3]], [[1, 2], [3]])

Andrew

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-combinat-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-combinat-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to