#12454: A draw_rauzy_fractal method for WordMorphism
-----------------------------+----------------------------------------------
Reporter: tjolivet | Owner: sage-combinat
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-5.0
Component: combinatorics | Keywords: rauzy fractal, substitution,
word morphism
Work_issues: | Upstream: N/A
Reviewer: | Author: tjolivet
Merged: | Dependencies:
-----------------------------+----------------------------------------------
Changes (by ncohen):
* status: needs_review => needs_work
Comment:
Helloooooooo !!!
The tests do not pass, and the reason why you do not see it is that to
actually test your patch you need both -optional and -long flags.
{{{
~/.Sage/devel/sage-2/sage/combinat/words$ sage -b 2 && sage -t -long
-optional morphism.py
[...]
sage -t -long -optional "devel/sage-2/sage/combinat/words/morphism.py"
**********************************************************************
File "/home/ncohen/.Sage/devel/sage-2/sage/combinat/words/morphism.py",
line 2027:
sage: s.plot_rauzy_fractal(color={1:'black', 2:'black', 3:'black'})
# optional long time
Exception raised:
Traceback (most recent call last):
File "/home/ncohen/.Sage/local/bin/ncadoctest.py", line 1231, in
run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/ncohen/.Sage/local/bin/sagedoctest.py", line 38, in
run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/ncohen/.Sage/local/bin/ncadoctest.py", line 1172, in
run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_42[18]>", line 1, in <module>
s.plot_rauzy_fractal(color={Integer(1):'black',
Integer(2):'black', Integer(3):'black'}) # optional long time###line
2027:
sage: s.plot_rauzy_fractal(color={1:'black', 2:'black', 3:'black'})
# optional long time
File "/home/ncohen/.Sage/local/lib/python/site-
packages/sage/combinat/words/morphism.py", line 2139, in
plot_rauzy_fractal
G += points(D[a], color=col_dict[a], alpha=opacity[a],
size=point_size)
KeyError: 1
~/.Sage/devel/sage-2/sage/combinat/words$
}}}
Actually, only a -long flag should be needed here (by removing the keyword
'optional' from the commented lines), shouldn'it ?
Nathann
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12454#comment:7>
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.