#14408: Upgrade dot2tex spkg to latest development version
--------------------------------------+-------------------------------------
       Reporter:  nthiery             |         Owner:  tbd      
           Type:  defect              |        Status:  new      
       Priority:  major               |     Milestone:  sage-5.10
      Component:  packages: optional  |    Resolution:           
       Keywords:                      |   Work issues:           
Report Upstream:  N/A                 |     Reviewers:           
        Authors:                      |     Merged in:           
   Dependencies:  #14594              |      Stopgaps:           
--------------------------------------+-------------------------------------

Comment (by leif):

 With Sage 5.10.beta3 and the new spkg, I get:
 {{{
 #!sh
 $ ./sage -t --long --optional=dot2tex,graphviz,sage `grep -Riwl
 --include='*.py' --include='*.pyx' --include='*.rst' dot2tex
 devel/sage/{doc,sage}`

 Doctesting 14 files.
 sage -t --long
 devel/sage/doc/en/thematic_tutorials/lie/affine_hw_crystals.rst
     [14 tests, 17.69 s]
 sage -t --long
 devel/sage/doc/en/thematic_tutorials/lie/affine_finite_crystals.rst
     [97 tests, 22.92 s]
 sage -t --long devel/sage/doc/en/thematic_tutorials/lie/crystals.rst
     [116 tests, 43.20 s]
 sage -t --long devel/sage/sage/combinat/crystals/crystals.py
     [27 tests, 28.37 s]
 sage -t --long devel/sage/sage/combinat/perfect_matching.py
     [132 tests, 15.61 s]
 sage -t --long devel/sage/sage/combinat/posets/linear_extensions.py
     [132 tests, 25.10 s]
 sage -t --long devel/sage/sage/combinat/posets/posets.py
 **********************************************************************
 File "devel/sage/sage/combinat/posets/posets.py", line 1087, in
 sage.combinat.posets.posets.FinitePoset._latex_
 Failed example:
     print P._latex_() #optional - dot2tex graphviz
 Expected:
     \begin{tikzpicture}
     %
     \useasboundingbox (0,0) rectangle (5.0cm,5.0cm);
     %
     \definecolor{cv0}{rgb}{0.0,0.0,0.0}
     \definecolor{cfv0}{rgb}{1.0,1.0,1.0}
     \definecolor{clv0}{rgb}{0.0,0.0,0.0}
     \definecolor{cv1}{rgb}{0.0,0.0,0.0}
     \definecolor{cfv1}{rgb}{1.0,1.0,1.0}
     \definecolor{clv1}{rgb}{0.0,0.0,0.0}
     \definecolor{cv0v1}{rgb}{0.0,0.0,0.0}
     %
     \Vertex[style={minimum
 
size=1.0cm,draw=cv0,fill=cfv0,text=clv0,shape=circle},LabelOut=false,L=\hbox{$1$},x=0.0cm,y=0.0cm]{v0}
     \Vertex[style={minimum
 
size=1.0cm,draw=cv1,fill=cfv1,text=clv1,shape=circle},LabelOut=false,L=\hbox{$2$},x=5.0cm,y=5.0cm]{v1}
     %
     \Edge[lw=0.1cm,style={post, bend right,color=cv0v1,},](v0)(v1)
     %
     \end{tikzpicture}
 Got:
     <BLANKLINE>
     Warning: `tkz-graph.sty` is not part of this computer's TeX
 installation.
     This package is required to render graphs in LaTeX.
     Visit 'http://altermundus.com/pages/graph.html'.
     <BLANKLINE>
     <BLANKLINE>
     Warning: `tkz-berge.sty` is not part of this computer's TeX
 installation.
     This package is required to render graphs in LaTeX.
     Visit 'http://altermundus.com/pages/graph.html'.
     <BLANKLINE>
     \begin{tikzpicture}
     %
     \useasboundingbox (0,0) rectangle (5.0cm,5.0cm);
     %
     \definecolor{cv0}{rgb}{0.0,0.0,0.0}
     \definecolor{cfv0}{rgb}{1.0,1.0,1.0}
     \definecolor{clv0}{rgb}{0.0,0.0,0.0}
     \definecolor{cv1}{rgb}{0.0,0.0,0.0}
     \definecolor{cfv1}{rgb}{1.0,1.0,1.0}
     \definecolor{clv1}{rgb}{0.0,0.0,0.0}
     \definecolor{cv0v1}{rgb}{0.0,0.0,0.0}
     %
     \Vertex[style={minimum
 
size=1.0cm,draw=cv0,fill=cfv0,text=clv0,shape=circle},LabelOut=false,L=\hbox{$1$},x=5.0cm,y=0.0cm]{v0}
     \Vertex[style={minimum
 
size=1.0cm,draw=cv1,fill=cfv1,text=clv1,shape=circle},LabelOut=false,L=\hbox{$2$},x=0.0cm,y=5.0cm]{v1}
     %
     \Edge[lw=0.1cm,style={post, bend right,color=cv0v1,},](v0)(v1)
     %
     \end{tikzpicture}
 **********************************************************************
 1 item had failures:
    1 of   3 in sage.combinat.posets.posets.FinitePoset._latex_
     [640 tests, 1 failure, 35.67 s]
 sage -t --long
 devel/sage/sage/combinat/rigged_configurations/kleber_tree.py
 **********************************************************************
 File "devel/sage/sage/combinat/rigged_configurations/kleber_tree.py", line
 387, in sage.combinat.rigged_configurations.kleber_tree.KleberTree._latex_
 Failed example:
     KT._latex_()   #optional - dot2tex
 Expected nothing
 Got:
     '\n\\begin{tikzpicture}[>=latex,line join=bevel,]\n%%\n\\node
 (Klebertreenodewithweight1+0+0andupwardsedgeroot0+1+0) at (13bp,82bp)
 [draw,draw=none] {$V_{\\omega_{1}}$};\n  \\node
 (Klebertreenodewithweight0+2+0andupwardsedgeroot0+0+0) at (13bp,8bp)
 [draw,draw=none] {$V_{2\\omega_{2}}$};\n  \\draw [black,->]
 (Klebertreenodewithweight1+0+0andupwardsedgeroot0+1+0) ..controls
 (13bp,63bp) and (13bp,42bp)  ..
 (Klebertreenodewithweight0+2+0andupwardsedgeroot0+0+0);\n
 \\pgfsetstrokecolor{black}\n  \\draw (35bp,45bp) node {$\\left(0, 1,
 0\\right)$};\n%\n\\end{tikzpicture}\n'
 **********************************************************************
 1 item had failures:
    1 of   4 in
 sage.combinat.rigged_configurations.kleber_tree.KleberTree._latex_
     [90 tests, 1 failure, 39.24 s]
 sage -t --long devel/sage/sage/categories/crystals.py
     [203 tests, 87.59 s]
 sage -t --long devel/sage/sage/graphs/digraph.py
     [388 tests, 26.94 s]
 sage -t --long devel/sage/sage/graphs/dot2tex_utils.py
     [10 tests, 1.43 s]
 sage -t --long devel/sage/sage/graphs/generic_graph.py
     [2462 tests, 401.13 s]
 sage -t --long devel/sage/sage/graphs/graph.py
     [573 tests, 109.25 s]
 sage -t --long devel/sage/sage/graphs/graph_latex.py
 **********************************************************************
 File "devel/sage/sage/graphs/graph_latex.py", line 1325, in
 sage.graphs.graph_latex.GraphLatex.dot2tex_picture
 Failed example:
     print g.latex_options().dot2tex_picture()  # optional - dot2tex
 graphviz
 Expected:
     \begin{tikzpicture}[>=latex,line join=bevel,]
     %%
       \node (0+1) at (...bp,...bp) [draw,draw=none] {$\left(\text{0},
 1\right)$};
       \node (0+0) at (...bp,...bp) [draw,draw=none] {$\left(\text{0},
 0\right)$};
       \node (1+0) at (...bp,...bp) [draw,draw=none] {$\left(\text{1},
 0\right)$};
       \node (1+1) at (...bp,...bp) [draw,draw=none] {$\left(\text{1},
 1\right)$};
       \draw [->] (1+0) ..controls (...bp,...bp) and (...bp,...bp)  ..
 (0+1);
       \draw [->] (0+0) ..controls (...bp,...bp) and (...bp,...bp)  ..
 (0+1);
       \draw [->] (0+0) ..controls (...bp,...bp) and (...bp,...bp)  ..
 (1+1);
       \draw [->] (1+0) ..controls (...bp,...bp) and (...bp,...bp)  ..
 (1+1);
     %
     \end{tikzpicture}
 Got:
     <BLANKLINE>
     \begin{tikzpicture}[>=latex,line join=bevel,]
     %%
     \node (0+0) at (14bp,63bp) [draw,draw=none] {$\left(0, 0\right)$};
       \node (0+1) at (60bp,9bp) [draw,draw=none] {$\left(0, 1\right)$};
       \node (1+0) at (60bp,63bp) [draw,draw=none] {$\left(1, 0\right)$};
       \node (1+1) at (14bp,9bp) [draw,draw=none] {$\left(1, 1\right)$};
       \draw [black,->] (0+0) ..controls (29bp,46bp) and (38bp,35bp)  ..
 (0+1);
       \draw [black,->] (1+0) ..controls (45bp,46bp) and (36bp,35bp)  ..
 (1+1);
       \draw [black,->] (0+0) ..controls (14bp,47bp) and (14bp,37bp)  ..
 (1+1);
       \draw [black,->] (1+0) ..controls (60bp,47bp) and (60bp,37bp)  ..
 (0+1);
     %
     \end{tikzpicture}
     <BLANKLINE>
 **********************************************************************
 1 item had failures:
    1 of   5 in sage.graphs.graph_latex.GraphLatex.dot2tex_picture
     [191 tests, 1 failure, 12.66 s]
 ----------------------------------------------------------------------
 sage -t --long devel/sage/sage/combinat/posets/posets.py  # 1 doctest
 failed
 sage -t --long
 devel/sage/sage/combinat/rigged_configurations/kleber_tree.py  # 1 doctest
 failed
 sage -t --long devel/sage/sage/graphs/graph_latex.py  # 1 doctest failed
 ----------------------------------------------------------------------
 }}}
 (These should be all files having (at least) an `optional dot2tex` tag.
 Note that I've also included `sage`, as some [more] tests will otherwise
 fail due to `NameError`s.)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14408#comment:15>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to