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
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to