[NumPy-Tickets] [NumPy] #1762: Error message prints dimensions in wrong order?
NumPy Trac
numpy-tickets@scipy....
Thu Mar 10 14:10:20 CST 2011
#1762: Error message prints dimensions in wrong order?
-------------------------+--------------------------------------------------
Reporter: charris | Owner: somebody
Type: defect | Status: closed
Priority: normal | Milestone: Unscheduled
Component: numpy.core | Version: devel
Resolution: fixed | Keywords:
-------------------------+--------------------------------------------------
Changes (by mwiebe):
* status: new => closed
* resolution: => fixed
Old description:
> {{{
> ERROR: test_setitem (test_panel.TestWidePanel)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib64/python2.7/site-
> packages/pandas/core/tests/test_panel.py", line 295, in test_setitem
> self.panel['ItemE'] = df
> File "/usr/lib64/python2.7/site-packages/pandas/core/panel.py", line
> 330, in __setitem__
> self.values[loc] = mat
> ValueError: non-broadcastable output operand with shape (30,4) doesn't
> match the broadcast shape (4,30,1)
>
> }}}
>
> It appears to me that (4,30,1) should be (1,30,4)
New description:
{{{
ERROR: test_setitem (test_panel.TestWidePanel)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-
packages/pandas/core/tests/test_panel.py", line 295, in test_setitem
self.panel['ItemE'] = df
File "/usr/lib64/python2.7/site-packages/pandas/core/panel.py", line
330, in __setitem__
self.values[loc] = mat
ValueError: non-broadcastable output operand with shape (30,4) doesn't
match the broadcast shape (4,30,1)
}}}
It appears to me that (4,30,1) should be (1,30,4)
--
Comment:
Fixed in 9e28fce21a7bec4c9f1e.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1762#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list