[Numpy-discussion] [SciPy-dev] SciPy Sprint results

Stefan van der Walt stefan at sun.ac.za
Fri Dec 21 04:23:53 EST 2007


On Fri, Dec 21, 2007 at 10:43:28AM +0200, Stefan van der Walt wrote:
> On Thu, Dec 20, 2007 at 05:24:44PM -0600, Travis E. Oliphant wrote:
> > > * bool(x) raises a ValueError, as it does for ndarrays.
> > >   
> > What does bool(x) raise for numpy.core.ma.

Sorry, I realise you were talking about the old numpy.core.ma:

z = N.core.ma.masked_array([True,False,True])
bool(z) == True

Regards
Stéfan



More information about the NumPy-Discussion mailing list