Skip to content

Prevent element-wise string comparison, second try#1024

Merged
j9ac9k merged 1 commit intopyqtgraph:developfrom
2xB:fix-835_2
Sep 13, 2019
Merged

Prevent element-wise string comparison, second try#1024
j9ac9k merged 1 commit intopyqtgraph:developfrom
2xB:fix-835_2

Conversation

@2xB
Copy link
Copy Markdown
Contributor

@2xB 2xB commented Aug 20, 2019

As discussed in issue #835, the former solution from #921 did not work to prevent np.ndarray.__eq__ to element-wise compare a string against an array. This Pull Request adds a type check so the comparison is only executed against strings, not against arrays. It is just copy-pasted from @flutefreak7 s comment on issue #835.

Fixes #835.

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Sep 13, 2019

Re-running the CI on this merge request here: https://dev.azure.com/pyqtgraph/pyqtgraph/_build/results?buildId=452

EDIT: CI Passed with no errors, merging

@j9ac9k j9ac9k merged commit bfd36dc into pyqtgraph:develop Sep 13, 2019
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.

Numpy FutureWarning when setting bins in ImageItem.getHistogram()

2 participants