#11334: Update numpy to 1.7.0
--------------------------------------------------------------+-------------
       Reporter:  jason                                       |         Owner:  
tbd     
           Type:  task                                        |        Status:  
new     
       Priority:  major                                       |     Milestone:  
sage-5.6
      Component:  packages                                    |    Resolution:  
        
       Keywords:  sd40.5                                      |   Work issues:  
        
Report Upstream:  Fixed upstream, in a later stable release.  |     Reviewers:  
        
        Authors:                                              |     Merged in:  
        
   Dependencies:                                              |      Stopgaps:  
        
--------------------------------------------------------------+-------------

Comment (by strogdon):

 Here is some background on the failing test
 {{{
 sage -t -long -force_lib "devel/sage-main/sage/plot/matrix_plot.py"
 }}}
 that's mentioned above
 [http://trac.sagemath.org/sage_trac/ticket/11334#comment:56 above]. The
 failure in Sage of
 {{{
 sage: matrix_plot([[sin(x), cos(x)], [1, 0]])
 }}}
 seems to be associated with the following sequence
 {{{
 sage: import numpy as np
 sage: np.asarray([[sin(x), cos(x)], [1, 0]], dtype = float)
 }}}
 With numpy-1.5.1 I get
 {{{
 sage:  np.asarray([[sin(x), cos(x)], [1, 0]], dtype = float)
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)

 /storage/sage/sage-5.5.rc0/<ipython console> in <module>()

 /storage/sage/sage-5.5.rc0/local/lib/python2.7/site-
 packages/numpy/core/numeric.py in asarray(a, dtype, order)
     282
     283     """
 --> 284     return array(a, dtype, copy=False, order=order)
     285
     286 def asanyarray(a, dtype=None, order=None):

 ValueError: setting an array element with a sequence.
 }}}
 and with numpy-1.7.0b2
 {{{
 sage: np.asarray([[sin(x), cos(x)], [1, 0]], dtype = float)
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)

 /storage/sage/sage-5.5.rc0/<ipython console> in <module>()

 /storage/sage/sage-5.5.rc0/local/lib/python2.7/site-
 packages/numpy/core/numeric.pyc in asarray(a, dtype, order)
     318
     319     """
 --> 320     return array(a, dtype, copy=False, order=order)
     321
     322 def asanyarray(a, dtype=None, order=None):

 /storage/sage/sage-5.5.rc0/local/lib/python2.7/site-
 packages/sage/symbolic/expression.so in
 sage.symbolic.expression.Expression.__float__
 (sage/symbolic/expression.cpp:7023)()

 TypeError: unable to simplify to float approximation
 }}}
 So it would appear that the ValueError when using numpy-1.5.1 is thrown my
 numpy but the TypeError when using numpy-1.7.0b2 is thrown by Sage.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11334#comment:68>
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.

Reply via email to