[Numpy-discussion] small bug in numpy.ma.minimum.outer

Charles Doutriaux doutriaux1@llnl....
Tue Sep 9 13:03:04 CDT 2008


 a=numpy.ones((2,2))
 >>> numpy.minimum.outer(a,a)
array([[[[ 1.,  1.],
         [ 1.,  1.]],

        [[ 1.,  1.],
         [ 1.,  1.]]],


       [[[ 1.,  1.],
         [ 1.,  1.]],

        [[ 1.,  1.],
         [ 1.,  1.]]]])
 >>> numpy.ma.minimum.outer(a,a)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/lgm/cdat/latest/lib/python2.5/site-packages/numpy/ma/core.py", 
line 3317, in outer
    result._mask = m
AttributeError: 'numpy.ndarray' object has no attribute '_mask'



More information about the Numpy-discussion mailing list