luispedro / mahotas

Computer Vision in Python
https://mahotas.rtfd.io
Other
839 stars 147 forks source link

Improving _check_array_labeled #43

Closed anntzer closed 10 years ago

anntzer commented 10 years ago

The error message of _check_array_labeled could be improved to indicate the missing property (being of intc type, or having the carray flag), as it is a bit cryptic right now. In fact, all functions in labeled could perhaps just use np.require instead of requiring the carray flag?

luispedro commented 10 years ago

Yes, I agree. This is on my TODO list after issue #41 & some recent discussion on the pythonvision mailing/list.