[Numpy-tickets] [NumPy] #501: "print arr" fails with nan when seterr(all='raise') [test included]
NumPy
numpy-tickets@scipy....
Fri May 4 05:24:52 CDT 2007
#501: "print arr" fails with nan when seterr(all='raise') [test included]
-------------------------+--------------------------------------------------
Reporter: AndrewStraw | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: numpy.core | Version: none
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by pv):
I'm not able to reproduce this:
{{{
import numpy as N
print N.__version__
s = N.array([1, N.nan],dtype=N.float64)
errstate = N.seterr(all='raise')
sstr = N.array_str(s)
print sstr
}}}
Passes for me for numpy 1.0.2 (and also for 1.0), on Intel Xeon and
Pentium M:
{{{
1.0.2
[ 1. nan]
}}}
Is this CPU or OS dependent?
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/501#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list