[NumPy-Tickets] [NumPy] #1718: "shape mismatch" error is not informative

NumPy Trac numpy-tickets@scipy....
Fri Mar 25 12:56:53 CDT 2011


#1718: "shape mismatch" error is not informative
--------------------------+-------------------------------------------------
  Reporter:  andrea       |       Owner:  somebody
      Type:  enhancement  |      Status:  closed  
  Priority:  normal       |   Milestone:  1.6.0   
 Component:  numpy.core   |     Version:  1.5.0   
Resolution:  fixed        |    Keywords:          
--------------------------+-------------------------------------------------
Changes (by mwiebe):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  1.5.2 => 1.6.0


Comment:

 There are improvements to this in the 1.6 beta, via the iterator. Here is
 a typical error message when calling a ufunc:

 {{{
 >>> np.arange(24).reshape(2,3,4) + np.arange(15).reshape(3,5)
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 ValueError: operands could not be broadcast together with shapes (2,3,4)
 (3,5)
 }}}

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


More information about the NumPy-Tickets mailing list