numpy.ma question

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

numpy.ma question

Charles Doutriaux
Hello i have a quick question about MA ans scalar

the following works:
import numpy.ma as MA
a0= MA.array(0)/1
a1= MA.array((0,0))/1

but not:
import numpy.ma as MA
a0= MA.array(0)/0
a1= MA.array((0,0))/0

Is that a bug ?

I'm using numpy 1.0.5.dev4958 and also whats in trunk right now
(1.1.0.dev5113)

C.


_______________________________________________
Numpy-discussion mailing list
[hidden email]
http://projects.scipy.org/mailman/listinfo/numpy-discussion
Reply | Threaded
Open this post in threaded view
|

Re: numpy.ma question

Pierre GM-2
Charles,

> but not:
> import numpy.ma as MA
> a0= MA.array(0)/0
> a1= MA.array((0,0))/0
>
> Is that a bug ?

That a0 is MA.masked is not a bug. That a1 should be a (2,) array masked
everywhere should work, but does not: that's the bug. Thanks for reporting.

_______________________________________________
Numpy-discussion mailing list
[hidden email]
http://projects.scipy.org/mailman/listinfo/numpy-discussion
Reply | Threaded
Open this post in threaded view
|

Re: numpy.ma question

Charles Doutriaux
that's exactly my understanding thanks for confirming

C.

Pierre GM wrote:

> Charles,
>
>  
>> but not:
>> import numpy.ma as MA
>> a0= MA.array(0)/0
>> a1= MA.array((0,0))/0
>>
>> Is that a bug ?
>>    
>
> That a0 is MA.masked is not a bug. That a1 should be a (2,) array masked
> everywhere should work, but does not: that's the bug. Thanks for reporting.
>
> _______________________________________________
> Numpy-discussion mailing list
> [hidden email]
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
>  

_______________________________________________
Numpy-discussion mailing list
[hidden email]
http://projects.scipy.org/mailman/listinfo/numpy-discussion
Reply | Threaded
Open this post in threaded view
|

Re: numpy.ma question

Pierre GM-2
On Wednesday 30 April 2008 15:25:43 Charles Doutriaux wrote:
> that's exactly my understanding thanks for confirming
Fixed in 1.1.0dev5114
_______________________________________________
Numpy-discussion mailing list
[hidden email]
http://projects.scipy.org/mailman/listinfo/numpy-discussion