Skip to content

Commit 18267f7

Browse files
committed
Fix inverted condition
1 parent a72c517 commit 18267f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nbodykit/base/catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def _get_slice(self, index):
304304
size = index.sum().compute()
305305
else:
306306

307-
if len(index) > 0 and numpy.issubdtype(index.dtype, numpy.integer):
307+
if len(index) > 0 and not numpy.issubdtype(index.dtype, numpy.integer):
308308
raise KeyError("slice index has must be boolean, integer. got %s" %(index.dtype))
309309

310310
size = len(index)

0 commit comments

Comments
 (0)