#11334: Update numpy to 1.6
------------------------+---------------------------------------------------
Reporter: jason | Owner: tbd
Type: task | Status: new
Priority: major | Milestone: sage-4.8
Component: packages | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
------------------------+---------------------------------------------------
Comment(by fbissey):
Ok this is still broken in 4.8.alpha2. Some food for thought
{{{
sage
----------------------------------------------------------------------
| Sage Version 4.8.alpha2, Release Date: 2011-11-19 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
**********************************************************************
* *
* Warning: this is a prerelease version, and it may be unstable. *
* *
**********************************************************************
sage: import numpy
sage: a = numpy.linspace(0,2,6)
sage: a
array([0.0, 0.4, 0.8, 1.2, 1.6, 2], dtype=object)
sage: ceil(a)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
/home/fbissey/<ipython console> in <module>()
/usr/lib64/python2.7/site-packages/sage/functions/other.py in
__call__(self, x, maximum_bits)
250 elif type(x).__module__ == 'numpy':
251 import numpy
--> 252 return numpy.ceil(x)
253
254 x_original = x
AttributeError: ceil
}}}
with numpy-1.5.1 we just have
{{{
sage: a
array([0.0, 0.4, 0.8, 1.2, 1.6, 2])
}}}
I suspect that for this one (functions/other.py) and functions/trig.py the
pynac interface may need to be touched. All stuff that takes an numpy
array and return a numpy array may have trouble.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11334#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 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.