Skip to content

Conversation

CoriPegliasco
Copy link
Collaborator

  • add test for mask in contains
  • minor english

- add test for mask in contains
- minor english
@@ -2056,7 +2056,8 @@ def contains(self, x, y, intern=False):
xname, yname = self.intern(intern)
m = ~(isnan(x) + isnan(y))
i = -ones(x.shape, dtype="i4")
if x.size != 0:

if x.size != 0 and True in m:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use m.any() instead of True in m

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@AntSimi AntSimi merged commit f14b2d1 into AntSimi:master May 26, 2021
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