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

Handle zero-sized array reductions #1979

Merged
merged 4 commits into from
Oct 8, 2017
Merged

Handle zero-sized array reductions #1979

merged 4 commits into from
Oct 8, 2017

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented Oct 8, 2017

When applying the histogram and datashader operations to an empty array it currently errors due to zero-sized array reductions and zero-range errors. This PR ensures that both operations default to a 0-1 range in that case and also handles colormapping issues in matplotlib for empty arrays.

Fixes: #1506 and #1522

@philippjfr
Copy link
Member Author

Ready to merge.

@jlstevens
Copy link
Contributor

Looks good. Merging.

@jlstevens jlstevens merged commit f3de8be into master Oct 8, 2017
@philippjfr philippjfr deleted the zero_reduction branch October 9, 2017 02:25
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants