[Numpy-discussion] maskedarray bug?

Pierre GM pgmdevlist@gmail....
Mon Jan 21 14:35:37 CST 2008


On Sunday 20 January 2008 16:32:40 you wrote:
> Pierre,
>
> The attached script shows how one can make a masked array with different
> dimensions for the mask than for the data.  I presume this is a bug.  It
> is triggered by the present code in the matplotlib quiver function.

Yep, bug indeed. Thanks for pointing that out ! 
The following patch should take care of the problem. (In short, a getmask 
function was used instead of getmaskarray).
Note that the patch takes also into account elements I had sent to Stefan 2 
weeks ago, that were not ported yet to the SVN: I still can't commit to the 
numpy/branches/maskedarray.
Let me know how it works, and thanks again for your time.
P.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ma_v20080121.patch
Type: text/x-diff
Size: 16498 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080121/7bd35df4/attachment.bin 


More information about the Numpy-discussion mailing list