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

MNT warn about alpha only if dtype is not uint8 #465

Merged
merged 1 commit into from
Sep 23, 2022

Conversation

mvdoc
Copy link
Contributor

@mvdoc mvdoc commented Sep 22, 2022

Volume2D and Vertex2D objects use VolumeRGB/VertexRGB for plotting. They set the alpha channel to a uint8 array. This returns a warning, because the check on the alpha values is too liberal. This PR fixes the issue, and should warn only when the alpha array is a float.

@mvdoc mvdoc merged commit 2df9775 into gallantlab:main Sep 23, 2022
@mvdoc mvdoc deleted the mnt/alpha_warning branch September 23, 2022 00:15
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