We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a72c517 commit 18267f7Copy full SHA for 18267f7
1 file changed
nbodykit/base/catalog.py
@@ -304,7 +304,7 @@ def _get_slice(self, index):
304
size = index.sum().compute()
305
else:
306
307
- if len(index) > 0 and numpy.issubdtype(index.dtype, numpy.integer):
+ if len(index) > 0 and not numpy.issubdtype(index.dtype, numpy.integer):
308
raise KeyError("slice index has must be boolean, integer. got %s" %(index.dtype))
309
310
size = len(index)
0 commit comments