Skip to content

Avoid testing truthiness of bokeh source, use len instead#1833

Merged
mrocklin merged 1 commit intodask:masterfrom
mrocklin:bokeh-truthy
Mar 12, 2018
Merged

Avoid testing truthiness of bokeh source, use len instead#1833
mrocklin merged 1 commit intodask:masterfrom
mrocklin:bokeh-truthy

Conversation

@mrocklin
Copy link
Copy Markdown
Member

This can be a numpy array in some cases. We use len to avoid errors like
the following:

ValueError: The truth value of an array with more than one element is
ambiguous. Use a.any() or a.all()

This can be a numpy array in some cases.  We use len to avoid errors like
the following:

    ValueError: The truth value of an array with more than one element is
    ambiguous. Use a.any() or a.all()
@mrocklin mrocklin merged commit 9ade11e into dask:master Mar 12, 2018
@mrocklin mrocklin deleted the bokeh-truthy branch March 12, 2018 14:44
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.

1 participant