Skip to content
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

Fix single index cutouts for cloudvolume volume provider datasets #108

Merged
merged 1 commit into from
Jun 23, 2023

Conversation

dxenes1
Copy link
Contributor

@dxenes1 dxenes1 commented Jun 22, 2023

Currently, pulling single index cutouts such as the one in https://github.com/aplbrain/bossdb_cookbook/blob/main/notebooks/Accessing-Lower-Resolution-Versions-Of-Data-From-BossDB.ipynb

error out because the cloud volume cutout is squeezed before being passed to the array convenience function, which tries to roll over the axis but because of the squeeze the array is now 2-dimensional.

This fix addresses this issue by removing the squeeze and directly indexing the cutout to remove the channel dimension.

@dxenes1 dxenes1 requested a review from j6k4m8 June 22, 2023 18:21
@dxenes1 dxenes1 self-assigned this Jun 22, 2023
Copy link
Member

@j6k4m8 j6k4m8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@dxenes1 dxenes1 merged commit b90e209 into master Jun 23, 2023
3 checks passed
@dxenes1 dxenes1 deleted the cloudvolume-single-index-fix branch June 23, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants