[Numpy-discussion] bug report: nonzero on masked arrays
by Andrew Straw other posts by this author
Feb 27 2006 12:16PM messages near this date
Re[2]: [Numpy-discussion] missing array type
|
[Numpy-discussion] Unexpected property of ndarray.fill
I know there's been some discussion along these lines lately, but I
haven't followed it closely and thought I could still give a simple bug
report. I can post this on Trac if no one can tackle it immediately --
let me know.
--Andrew
In [1]: import numpy
In [2]: numpy.__file__
Out[2]:
'/home/astraw/py2.3-linux-x86_64/lib/python2.3/site-packages/numpy-0.9.6.2172-py2.3-linux-x8
6_64.egg/numpy/__init__.pyc'
In [3]: jj= numpy.ma.masked_array( [0,1,2,3,0,4,5,6],
mask=[0,0,0,1,1,1,0,0])
In [4]: numpy.ma.nonzero(jj)
---------------------------------------------------------------------------
exceptions.NameError Traceback (most
recent call last)
/home/astraw/src/kookaburra/flydra/analysis/<ipython console>
/home/astraw/py2.3-linux-x86_64/lib/python2.3/site-packages/numpy-0.9.6.2172-py2.3-linux-x86
_64.egg/numpy/core/ma.py
in __call__(self, a, *args, **kwargs)
317 else:
318 if m.shape != shape:
--> 319 m = mask_or(getmaskarray(a), getmaskarray(b))
320 return masked_array(result, m)
321
NameError: global name 'b' is not defined
In [5]:
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
|