[Numpy-tickets] [NumPy] #495: maximum_sctype returns incompatible types on different computers
NumPy
numpy-tickets@scipy....
Thu Apr 5 17:38:50 CDT 2007
#495: maximum_sctype returns incompatible types on different computers
------------------------+---------------------------------------------------
Reporter: socha | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0.2 Release
Component: numpy.core | Version: none
Severity: normal | Keywords:
------------------------+---------------------------------------------------
On our Windows XP Pro computer we get:
{{{
C:\Documents and Settings\socha>python
Python 2.4.3 - Enthought Edition 1.0.0 (#69, Aug 2 2006, 12:09:59) [MSC
v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.0.2'
>>> from numpy import array
>>> from numpy import maximum_sctype
>>> g = array([1], dtype='float32')
>>> maximum_sctype(g)
<type 'numpy.float96'>
>>> from numpy import float128
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: cannot import name float128
>>>
}}}
Note that the maximum type for float32 is float96, and we cannot import
float128.
On our Macintosh with an Intel 2GHz Core Duo, maximum_sctype returns
float128 for float32, and float96 cannot be imported. This makes it
problematic to share results between the two computers, since files
written as float96 will not be readable on the other computers.
We'd expect both computers to return the same type from maximum_sctype.
- David Socha & Daniel Terhorst, UrbanSim Project, http://www.urbansim.org
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/495>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list