On Jul 15, 2013, at 14:40 , Gregorio Bastardo
wrote:
> Hi Pierre,
>
>> Note as well that hardening the mask only prevents unmasking: you can still
>> grow the mask, which may not be what you want. Use
>> `x.mask.flags.writeable=False` to make the mask really read-only.
>
> I ran into an unm
On Jul 15, 2013, at 10:04 , Gregorio Bastardo
wrote:
> Hi Pierre,
>
>> I'm a bit surprised, though. Here's what I tried
>>
> np.version.version
>> <<< 1.7.0
> x = np.ma.array([1,2,3], mask=[0,1,0])
> x.flags.writeable=False
> x[0]=-1
>> <<< ValueError: assignment destination i
On Jul 9, 2013, at 16:38 , Chao YUE wrote:
> Sorry I didn't the docs very carefully. there is no doc for np.ma.argmax for
> indeed there is for np.ma.argmin
Yeah, the doc of the function asks you to go check the doc of the method… Not
the best.
> so it's an expected behavior rather than a b
On Jul 9, 2013, at 16:08 , Sebastian Berg wrote:
> On Tue, 2013-07-09 at 15:14 +0200, Stéfan van der Walt wrote:
>> On Tue, Jul 9, 2013 at 2:55 PM, Chao YUE wrote:
>>> I am using 1.7.1 version of numpy and np.ma.argmax is not repecting the
>>> mask?
>>>
>>> In [96]: d3
>>> Out[96]:
>>> masked_