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

Boolean arrays in Bokeh rasters #727

Closed
jlstevens opened this issue Jun 21, 2016 · 2 comments
Closed

Boolean arrays in Bokeh rasters #727

jlstevens opened this issue Jun 21, 2016 · 2 comments
Labels
tag: backend: bokeh type: bug Something isn't correct or isn't working
Milestone

Comments

@jlstevens
Copy link
Contributor

Using boolean arrays in Images when plotting with Bokeh breaks:

/Users/jstevens/miniconda/envs/analytics/lib/python2.7/site-packages/bokeh/core/properties.pyc in prepare_value(self, cls, name, value)
    270                     break
    271             else:
--> 272                 raise e
    273         else:
    274             value = self.transform(value)

ValueError: expected a value of type Real, got True of type bool_

As this works fine in matplotlib and can be fixed by casting the booleans to a numeric type, I'm filing this as a bug. I suspect this will be an issue for all raster types, not just Image.

@jlstevens jlstevens added type: bug Something isn't correct or isn't working tag: backend: bokeh labels Jun 21, 2016
@philippjfr philippjfr added this to the v1.7.0 milestone Dec 10, 2016
@philippjfr
Copy link
Member

The PR fixing this was merged. Closing.

Copy link

This issue 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
tag: backend: bokeh type: bug Something isn't correct or isn't working
Projects
None yet
Development

No branches or pull requests

2 participants