Jaap,

Please don't worry about the doctests under devel/sage/sage/plot/plot3d/*
That code is in a known heavy state of flux, and nobody has even made
an attempt to fix up the doctests.  Before the official release we're going to
choose maybe 3 or 4 functions defined in there and export only those,
with doctests for those.

 -- William

On Jan 3, 2008 4:27 PM, Jaap Spies <[EMAIL PROTECTED]> wrote:
>
>
> Jaap Spies wrote:
> > mabshoff wrote:
> >
> >> The tarball [194MB] is at
> >>
> >>   http://sage.math.washington.edu/home/mabshoff/sage-2.9.2.alpha0.tar
> >>
> >> Please build test this and report and issue besides the doctest
> >> failures listed
> >> at #1672:
> >>
> >> devel/sage-main/sage/plot/plot.py
> >> devel/sage-main/sage/plot/plot3d/examples.py
> >> devel/sage-main/sage/plot/plot3d/index_face_set.pyx
> >> devel/sage-main/sage/plot/plot3d/parametric_plot3d.py
> >>
> >
> > Build on FC8 was ok:
> >
> > real    181m32.705s
> > user    134m17.342s
> > sys     15m55.018s
> > To install gap, gp, singular, etc., scripts
> > in a standard bin directory, start sage and
> > type something like
> >     sage: install_scripts('/usr/local/bin')
> > at the SAGE command prompt.
> >
> > SAGE build/upgrade complete!
> > [EMAIL PROTECTED] sage-2.9.2.alpha0]$
> >
> > But make check stopped at:
> >
> > Exception raised:
> >      Traceback (most recent call last):
> >        File 
> > "/home/jaap/Download/sage-2.9.2.alpha0/local/lib/python2.5/doctest.py",
> > line 1212, in __run
> >          compileflags, 1) in test.globs
> >        File "<doctest __main__.example_10[2]>", line 1, in <module>
> >          S.jmol_repr(S.default_render_params())###line 610:
> >      sage: S.jmol_repr(S.default_render_params())
> >        File "shapes.pyx", line 214, in 
> > sage.plot.plot3d.shapes.Cylinder.jmol_repr
> >          return ParametricSurface.jmol_repr(self, render_params)
> >        File "parametric_surface.pyx", line 116, in
> > sage.plot.plot3d.parametric_surface.ParametricSurface.jmol_repr
> >          return IndexFaceSet.jmol_repr(self, render_params)
> >        File "index_face_set.pyx", line 646, in
> > sage.plot.plot3d.index_face_set.IndexFaceSet.jmol_repr
> >          if render_params.output_archive:
> >      AttributeError: 'RenderParams' object has no attribute 'output_archive'
> > **********************************************************************
> > 1 items had failures:
> >     1 of   3 in __main__.example_10
> > ***Test Failed*** 1 failures.
> > For whitespace errors, see the file .doctest_index_face_set.pyx
> >           [2.3 s]
> > sage -t  devel/sage-main/sage/plot/plot3d/parametric_surface.pyx
> >           [4.9 s]
> > sage -t  devel/sage-main/sage/plot/plot3d/platonic.py
> >           [2.3 s]
> > sage -t  devel/sage-main/sage/plot/plot3d/texture.py
> >           [1.7 s]
> > sage -t  devel/sage-main/sage/plot/plot3d/shapes.pyx
> >           [3.7 s]
> > sage -t  devel/sage-main/sage/plot/plot3d/point_c.pxi
> >           [1.7 s]
> > sage -t  devel/sage-main/sage/plot/plot3d/transform.pyx
> >
> > *hangs* here, but with
> > ./sage -t -verbose devel/sage-main/sage/plot/plot3d/transform.pyx
> >
> > all test passes!
> >
> > I'm flabbergasted!
> >
> > Jaap
> >
>
> The same on FC7, hangs on ./sage -testall -verbose, but:
>
> sage -t  devel/sage-main/sage/plot/plot3d/transform.pyx
> [2]+  Stopped                 ./sage -testall -verbose
> [EMAIL PROTECTED] sage-2.9.2.alpha0]$ ./sage -t -verbose 
> devel/sage-main/sage/plot/plot3d/transform.pyx
> sage -t -verbose devel/sage-main/sage/plot/plot3d/transform.pyxTrying:
>      from sage.plot.plot3d.transform import rotate_arbitrary###line 
> 104:_sage_    >>> from sage.plot.plot3d.transform import rotate_arbitrary
> Expecting nothing
> ok
> Trying:
>      rotate_arbitrary((Integer(1),Integer(0),Integer(0)), Integer(1))###line 
> 107:_sage_    >>> rotate_arbitrary((1,0,0), 1)
> Expecting:
>      [            1.0             0.0             0.0]
>      [            0.0  0.540302305868  0.841470984808]
>      [            0.0 -0.841470984808  0.540302305868]
> ok
> Trying:
>      rotate_arbitrary((Integer(0),Integer(1),Integer(0)), Integer(1))###line 
> 111:_sage_    >>> rotate_arbitrary((0,1,0), 1)
> Expecting:
>      [ 0.540302305868             0.0 -0.841470984808]
>      [            0.0             1.0             0.0]
>      [ 0.841470984808             0.0  0.540302305868]
> ok
> Trying:
>      rotate_arbitrary((Integer(0),Integer(0),Integer(1)), Integer(1))###line 
> 115:_sage_    >>> rotate_arbitrary((0,0,1), 1)
> Expecting:
>      [ 0.540302305868  0.841470984808             0.0]
>      [-0.841470984808  0.540302305868             0.0]
>      [            0.0             0.0             1.0]
> ok
> Trying:
>      rotate_arbitrary((Integer(1),Integer(1),Integer(1)), Integer(1))###line 
> 121:_sage_    >>> rotate_arbitrary((1,1,1), 1)
> Expecting:
>      [ 0.693534870579  0.639056064305 -0.332590934883]
>      [-0.332590934883  0.693534870579  0.639056064305]
>      [ 0.639056064305 -0.332590934883  0.693534870579]
> ok
> Trying:
>      rotate_arbitrary((Integer(1),Integer(1),Integer(1)), 
> -Integer(1))**(-Integer(1))###line 125:_sage_    >>> 
> rotate_arbitrary((1,1,1), -1)^(-1)
> Expecting:
>      [ 0.693534870579  0.639056064305 -0.332590934883]
>      [-0.332590934883  0.693534870579  0.639056064305]
>      [ 0.639056064305 -0.332590934883  0.693534870579]
> ok
> Trying:
>      rotate_arbitrary((Integer(1),Integer(2),Integer(3)), 
> -Integer(1)).det()###line 131:_sage_    >>> rotate_arbitrary((1,2,3), 
> -1).det()
> Expecting:
>      1.0
> ok
> Trying:
>      rotate_arbitrary((Integer(1),Integer(1),Integer(1)), 
> Integer(2)*pi/Integer(3)) * vector(RDF, 
> (Integer(1),Integer(2),Integer(3)))###line 133:_sage_    >>>
> rotate_arbitrary((1,1,1), 2*pi/3) * vector(RDF, (1,2,3))
> Expecting:
>      (2.0, 3.0, 1.0)
> ok
> Trying:
>      rotate_arbitrary((Integer(1),Integer(2),Integer(3)), Integer(5)) * 
> vector(RDF, (Integer(1),Integer(2),Integer(3)))###line 135:_sage_    >>>
> rotate_arbitrary((1,2,3), 5) * vector(RDF, (1,2,3))
> Expecting:
>      (1.0, 2.0, 3.0)
> ok
> Trying:
>      rotate_arbitrary((Integer(1),Integer(1),Integer(1)), 
> pi/Integer(7))**Integer(7)###line 137:_sage_    >>> rotate_arbitrary((1,1,1), 
> pi/7)^7
> Expecting:
>      [-0.333333333333  0.666666666667  0.666666666667]
>      [ 0.666666666667 -0.333333333333  0.666666666667]
>      [ 0.666666666667  0.666666666667 -0.333333333333]
> ok
> Trying:
>      vx,vy,vz,theta = var('x y z theta')###line 152:_sage_    >>> 
> vx,vy,vz,theta = var('x y z theta')
> Expecting nothing
> ok
> Trying:
>      def rotX(theta): return matrix(SR, Integer(3), Integer(3), [Integer(1), 
> Integer(0), Integer(0),  Integer(0), cos(theta), -sin(theta), Integer(0),
> sin(theta), cos(theta)])###line 155:_sage_    >>> def rotX(theta): return 
> matrix(SR, 3, 3, [1, 0, 0,  0, cos(theta), -sin(theta), 0, sin(theta), 
> cos(theta)])
> Expecting nothing
> ok
> Trying:
>      def rotZ(theta): return matrix(SR, Integer(3), Integer(3), [cos(theta), 
> -sin(theta), Integer(0),  sin(theta), cos(theta), Integer(0), Integer(0),
> Integer(0), Integer(1)])###line 156:_sage_    >>> def rotZ(theta): return 
> matrix(SR, 3, 3, [cos(theta), -sin(theta), 0,  sin(theta), cos(theta), 0, 0, 
> 0, 1])
> Expecting nothing
> ok
> Trying:
>      vy = sqrt(Integer(1)-vx**Integer(2)-vz**Integer(2))###line 161:_sage_    
> >>> vy = sqrt(1-vx^2-vz^2)
> Expecting nothing
> ok
> Trying:
>      t = atan(vy/vz)+pi/Integer(2)###line 164:_sage_    >>> t = 
> atan(vy/vz)+pi/2
> Expecting nothing
> ok
> Trying:
>      m = rotX(t)###line 165:_sage_    >>> m = rotX(t)
> Expecting nothing
> ok
> Trying:
>      new_y = vy*cos(t) - vz*sin(t)###line 166:_sage_    >>> new_y = vy*cos(t) 
> - vz*sin(t)
> Expecting nothing
> ok
> Trying:
>      s = atan(vx/new_y) + pi/Integer(2)###line 169:_sage_    >>> s = 
> atan(vx/new_y) + pi/2
> Expecting nothing
> ok
> Trying:
>      m = rotZ(s) * m###line 170:_sage_    >>> m = rotZ(s) * m
> Expecting nothing
> ok
> Trying:
>      m = rotX(theta) * m###line 174:_sage_    >>> m = rotX(theta) * m
> Expecting nothing
> ok
> Trying:
>      ix = [(i,j) for i in range(Integer(3)) for j in 
> range(Integer(3))]###line 177:_sage_    >>> ix = [(i,j) for i in range(3) for 
> j in range(3)]
> Expecting nothing
> ok
> Trying:
>      for ij in ix: m[ij] = m[ij].simplify_rational()###line 178:_sage_    >>> 
> for ij in ix: m[ij] = m[ij].simplify_rational()
> Expecting nothing
> ok
> Trying:
>      m = rotZ(-s) * m###line 181:_sage_    >>> m = rotZ(-s) * m
> Expecting nothing
> ok
> Trying:
>      m = rotX(-t) * m###line 182:_sage_    >>> m = rotX(-t) * m
> Expecting nothing
> ok
> Trying:
>      for ij in ix: m[ij] = m[ij].simplify_rational()###line 183:_sage_    >>> 
> for ij in ix: m[ij] = m[ij].simplify_rational()
> Expecting nothing
> ok
> 1 items had no tests:
>      __main__
> 1 items passed all tests:
>    25 tests in __main__.example_0
> 25 tests in 2 items.
> 25 passed and 0 failed.
> Test passed.
>
>           [6.3 s]
>
> ----------------------------------------------------------------------
> All tests passed!
> Total time for all tests: 6.3 seconds
> [EMAIL PROTECTED] sage-2.9.2.alpha0]$
>
>
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to