[Numpy-discussion] numpy.ma.flatnotmasked_contiguous error in slice.stop values?
Sun Aug 8 22:54:32 CDT 2010
2010/8/9 Pierre GM <firstname.lastname@example.org>:
> OK, mind opening a ticket ? I'll try to take care of that tmw and I don't want the bug report to fall between the cracks.
Done. http://projects.scipy.org/numpy/ticket/1576. Thank you for your
very prompt and helpful response. I wasn't aware of the ticket system
> Mmh, tuples are nicer than slices... We'll see.
O.K. I'm fairly new to NumPy and Matplotlib, so I'll leave the design
decision to the experts, but I did find
segments = np.ma.flatnotmasked_contiguous (am)
print am[segments], am[segments]
segments1 = matplotlib.mlab.contiguous_regions (am)
print am[slice (*segments1)], am[slice (*segments1)]
but perhaps there are more elegant ways of dealing with tuples
> print numpy.version.version
More information about the NumPy-Discussion