[Numpy-discussion] numpy.ma.compress
Stefan van der Walt
stefan@sun.ac...
Wed Jan 23 16:05:25 CST 2008
On Wed, Jan 23, 2008 at 11:17:51AM -1000, Eric Firing wrote:
> Pierre,
>
> numpy.compress exists, but numpy.ma.compress does not; is this
> intentional?
Looks like x.compress exists, but it doesn't work as expected:
x = N.ma.array([1,2,3],mask=[True,False,Fals])
x.compress(x<2)
throws
ValueError: total size of new array must be unchanged
Regards
Stéfan
More information about the Numpy-discussion
mailing list