[Numpy-tickets] [NumPy] #493: maximum_sctype returns a smaller type than is actually used by the data
NumPy
numpy-tickets@scipy....
Thu Apr 5 17:30:33 CDT 2007
#493: maximum_sctype returns a smaller type than is actually used by the data
------------------------+---------------------------------------------------
Reporter: socha | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0.2 Release
Component: numpy.core | Version: none
Severity: normal | Keywords: maximum_sctype
------------------------+---------------------------------------------------
Here's an example:
{{{
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='int64')
>>> maximum_sctype(g)
<type 'numpy.int32'> <== Why is this not at least int64?
>>>
}}}
- David Socha & Daniel Terhorst, UrbanSim Project, http://www.urbansim.org
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/493>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list