<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 16, 2013 at 11:39 AM, Chad Kidder <span dir="ltr"><<a href="mailto:cckidder@gmail.com" target="_blank">cckidder@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Just found what should be a bug in 1.7.1.  I'm running python(x,y) on windows here:<br><br>

>>> dataMatrix[ii,:,mask].shape<br>(201, 23)<br>>>> dataMatrix[ii,:,:].shape<br>(23, 201)<br>
>>> dataMatrix.shape<br>(24, 23, 201)<br>>>> mask<br>array([ True,  True,  True,  True,  True,  True,  True,  True,  True,<br>        ...<br>        True,  True,  True], dtype=bool)<br><br></div>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<span class="HOEnZb"><font color="#888888"><br>


<br></font></span></div><span class="HOEnZb"><font color="#888888">     --Chad Kidder<br></font></span></div>
<br></blockquote><div><br></div><div>Chad,<br><br>The issue here is one where there is the mixing of fancy indexing (I presume that is what "ii" is), slicing and boolean indexing. If I remember correctly, the changing of the dimension orders was an inadvertent byproduct of handing all this array accessing methods in one shot. I think this was addressed in 1.8. Sorry for being very brief and vague, hopefully someone else who understands what the resolution was can fill in.<br>

<br></div><div>Cheers!<br>Ben Root<br></div><br></div></div></div>