[Numpy-discussion] numpy.ma.compress
Stefan van der Walt
stefan@sun.ac...
Thu Jan 24 03:02:52 CST 2008
Hi Pierre
On Wed, Jan 23, 2008 at 08:45:26PM -0500, Pierre GM wrote:
> All,
> I just committed a fix on the SVN. Now, the axis keyword should be recognized.
> Sorry for the delay.
I'm not 100% sure about the new behaviour -- compress now removes
masked elements, instead of ignoring them. Whereas a person would
have been able to do
compress(x,condition).compressed()
before, the mask information is now thrown away.
The numpy docstring states that compress should be equivalent to
a[condition], which is no longer the case.
Regards
Stéfan
More information about the Numpy-discussion
mailing list