New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTDC_Hierarchy: Slicing of non-scalar features not working #128
Comments
Originally, slicing of image/contour/mask, etc. was not implemented because it was never necessary until now. I am labeling this as a bug though, because the warning is definitely misleading. |
While working on this issue I discovered that slicing on the |
Sounds good to me. I also don't see any application where anyone would need slicing of contours. For the sake of clarity, I would still suggest to raise a NotImplementedError if anyone tries to pass anything other than an integer value when trying to access a contour. |
Expected Behavior:
ds_c["image"][slice(start,stop,step)]
returns slice of image array of child datasetds_c
between indicesstart
andstop
Actual Behavior:
Attempt to get a slice of non-scalar features throws warning and only returns feature-entry of index
start
:ds_c["image"][start]
Warning:
Steps to reproduce the Behavior:
The text was updated successfully, but these errors were encountered: