[NumPy-Tickets] [NumPy] #1785: fastCopyAndTranspose test error

NumPy Trac numpy-tickets@scipy....
Sun Mar 27 16:14:02 CDT 2011


#1785: fastCopyAndTranspose test error
-------------------------+--------------------------------------------------
  Reporter:  rgommers    |       Owner:  mwiebe  
      Type:  defect      |      Status:  reopened
  Priority:  high        |   Milestone:  1.6.0   
 Component:  numpy.core  |     Version:  1.5.1   
Resolution:              |    Keywords:          
-------------------------+--------------------------------------------------
Changes (by rgommers):

  * status:  closed => reopened
  * resolution:  invalid =>


Comment:

 It's not an install mistake. Seeing this with an in-place build of both
 master and 1.6.x (1.6.0b2.dev-dc3781f).

 {{{
 In [1]: np.__version__
 Out[1]: '1.6.0b2.dev-dc3781f'

 In [2]: a = np.array(2)

 In [3]: np.fastCopyAndTranspose(a)
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)

 /Users/zouzoujing/<ipython console> in <module>()

 ValueError: only 2-d arrays are allowed

 In [4]: a = np.array([2, 3])

 In [5]: np.fastCopyAndTranspose(a)
 Out[5]: array([2, 3])
 }}}

 So the error message is also wrong; 1-D arrays are fine, 0-D arrays are
 not.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1785#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list