[Numpy-discussion] Using array mask swaps array axes
Chad Kidder
cckidder at gmail.com
Wed Oct 16 11:39:43 EDT 2013
Just found what should be a bug in 1.7.1. I'm running python(x,y) on
windows here:
>>> dataMatrix[ii,:,mask].shape
(201, 23)
>>> dataMatrix[ii,:,:].shape
(23, 201)
>>> dataMatrix.shape
(24, 23, 201)
>>> mask
array([ True, True, True, True, True, True, True, True, True,
...
True, True, True], dtype=bool)
using a mask should not change the order of the dimensions. Is there a
reason for this behavior, and if so, how do I avoid it in the future?
Thanks
--Chad Kidder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20131016/9ed6c0ef/attachment.html>
More information about the NumPy-Discussion
mailing list