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

Check data array passed mosaic.polypcolor matches dimension of descriptor.ds #21

Open
andrewdnolan opened this issue Nov 19, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@andrewdnolan
Copy link
Collaborator

As demonstrated in #20, there currently isn't any warning or error raised when the dimension of the data array passed to mosaic.polypcolor does not match the dimensions of the dataset used to create the mosaic.descriptor.

This is a common failure case, when a user creates a descriptor with a "full" dataset but (accidentally) passes a regionally sub-setted data array to mosaic.polypcolor. This will cause incorrect indexing issues, even through it won't cause an out of bounds error.

@andrewdnolan andrewdnolan added the enhancement New feature or request label Nov 19, 2024
@andrewdnolan andrewdnolan self-assigned this Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant