Re: [sage-combinat-devel] Alphabet and Words
I propose to create a class UnionAlphabet which heritates from UnionCombinatorialClass and Alphabet. Do you agree ? Yes! 2) The _str_ method of words is pretty bad in a lot of situations. I agree! Up to now, I was using the WordOptions(identifier='') method which could be better. It could be more automatic. Especially in my case where the labels of my intervals are words (but there is also the example of the Rauzy graph). Do you have any idea for this ? I propose to build a _str_ method of any words inside Words. I imagine something that looks like this {{{ sage: W1 = Words(alphabet=abc, str=standard) sage: print str(W2(abbaca)) word: abbaca sage: W2 = Words(alphabet=abc, str=minimalist) sage: print str(W2(abbaca)) abbaca sage: W3 = Words(alphabet=abc, str=sequence) sage: print str(W3(abbaca)) a, b, b, a, c, a }}} I don't think I like this proposition. The print option of an element is not really a property of the parent. The latter is especially nice when your alphabet looks like A = {'ab', 'ac', 'be'} This is the current default behavior (comma are added when there is a letter using more than one character): sage: A = Alphabet(['ab','ac','be']) sage: W = Words(A) sage: W(['ab','ab','be','ac']) word: ab,ab,be,ac What do you think ? Cheers, Vincent I think that the problem is that str and repr are currently the same : sage: w = Word('abccdef') sage: str(w) 'word: abccdef' sage: repr(w) 'word: abccdef' str(w) should not include the identifier : sage: str(w) 'abccdef' sage: print w abccdef This would solve the problem for labels of (rauzy) graphs...and probably more. I will create the ticket soon, if you don't do it before me. Cheers, Sébastien -- 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-de...@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.
[sage-combinat-devel] trouble installing sage-combinat
Hi, Jeff Ferreira, who is a student here at Davis, has trouble installing the sage-combinat patches. For me everything works with sage-4.2, but for him it hangs. Does anyone have the same problem or know what the problem might be? Thanks, Anne -- Anne, I was running sage 4.2.1, so I took your advice and (using OS X Time Machine) returned to sage 4.2. With sage 4.2 installed I did a ./sage -combinat install which hung at Updating modification times for the documentation... sage -docbuild --update-mtimes reference html sphinx-build -b html -d /Applications/sage/devel/sage/doc/output/doctrees/en/reference /Applications/sage/devel/sage/doc/en/reference /Applications/sage/devel/sage/doc/output/html/en/reference The install hangs at a different spot with sage 4.2.1... Jeff -- 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-de...@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.
Re: [sage-combinat-devel] trouble installing sage-combinat
Hi Anne, On Tue, Dec 15, 2009 at 3:06 PM, Anne Schilling a...@math.ucdavis.edu wrote: SNIP The install hangs at a different spot with sage 4.2.1... This might be related to this recent thread [1] and an older thread [2]. I think a fix is at ticket #7473 [3]. [1] http://groups.google.com/group/sage-devel/browse_thread/thread/d2037e34475bc2a9 [2] http://groups.google.com/group/sage-devel/browse_thread/thread/11f432ca0302189e [3] http://trac.sagemath.org/sage_trac/ticket/7473 -- Regards Minh Van Nguyen -- 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-de...@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.
Re: [sage-combinat-devel] trouble installing sage-combinat
Hi Minh, Thanks! I knew about the problem with sage 4.2.1 (and had the same problem). That's why I suggested to downgrade to sage 4.2 (where I did not have the problem). But apparently there was still a problem. Perhaps it is best just to wait for sage 4.3!? Anne Minh Nguyen wrote: Hi Anne, On Tue, Dec 15, 2009 at 3:06 PM, Anne Schilling a...@math.ucdavis.edu wrote: SNIP The install hangs at a different spot with sage 4.2.1... This might be related to this recent thread [1] and an older thread [2]. I think a fix is at ticket #7473 [3]. [1] http://groups.google.com/group/sage-devel/browse_thread/thread/d2037e34475bc2a9 [2] http://groups.google.com/group/sage-devel/browse_thread/thread/11f432ca0302189e [3] http://trac.sagemath.org/sage_trac/ticket/7473 -- 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-de...@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.
Re: [sage-combinat-devel] trouble installing sage-combinat
Hi Anne, On Tue, Dec 15, 2009 at 6:01 PM, Anne Schilling a...@math.ucdavis.edu wrote: SNIP That's why I suggested to downgrade to sage 4.2 (where I did not have the problem). But apparently there was still a problem. I think the hanging problem goes as far back as Sage 4.2. John Palmieri experienced the problem on OS X 10.6 as reported here [1]. Perhaps it is best just to wait for sage 4.3!? I think that's a viable option for now. Sage 4.3.rc0 could be used for development purposes, plus it integrates heaps of code from the sage-combinat team. [1] http://groups.google.com/group/sage-devel/browse_thread/thread/433ec95cba086551 -- Regards Minh Van Nguyen -- 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-de...@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.