#1345: scipy.ndimage.measurements.center_of_mass does not work with masked arrays
-----------------------------------------+----------------------------------
Reporter: xubuntix | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 0.9.0
Component: scipy.ndimage | Version: 0.8.0
Keywords: masked_array center_of_mass |
-----------------------------------------+----------------------------------
scipy.ndimage.measurements.center_of_mass
does not work with a masked_array (numpy.ma)
I think one of two things should happen: either the mask is honoured and
the center_of_mask is only calculated on elements without a mask, or the
function should return an error to indicate that the operation will not
work as expected.
Just returning some value seems therefore to be a bug.
--
Ticket URL: <http://projects.scipy.org/scipy/ticket/1345>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.