[Numpy-discussion] A minor annoyance with MA
Travis Oliphant
oliphant at ee.byu.edu
Tue Aug 29 17:36:55 CDT 2006
PGM wrote:
>Folks,
>I keep running into the following problem since some recent update (I'm
>currently running 1.0b3, but the problem occurred roughly around 0.9.8):
>
>
>
>>>>import numpy.core.ma as MA
>>>>x=MA.array([[1],[2]],mask=False)
>>>>x.sum(None)
>>>>
>>>>
>/usr/lib64/python2.4/site-packages/numpy/core/ma.py in reduce(self, target,
>axis, dtype)
> 393 m.shape = (1,)
> 394 if m is nomask:
>--> 395 return masked_array (self.f.reduce (t, axis))
> 396 else:
> 397 t = masked_array (t, m)
>
>TypeError: an integer is required
>#................................
>
>
This bug has hopefully been fixed (in SVN). Please let us know if it
still persists.
-Travis
More information about the Numpy-discussion
mailing list