Skip to content

Commit 52429f2

Browse files
authored
Merge pull request #57 from histogrammar/fix-prevent-warning
Fix prevent warning
2 parents 5c98f72 + 0c4cfbe commit 52429f2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

histogrammar/primitives/categorize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def _numpy(self, data, weights, shape):
311311
self.bins[x]._numpy(None, c, [None])
312312
else:
313313
# all other cases ...
314-
selection = np.empty(q.shape, dtype=np.bool)
314+
selection = np.empty(q.shape, dtype=bool)
315315
uniques, inverse = np.unique(q, return_inverse=True)
316316

317317
# no possibility of exception from here on out (for rollback)

histogrammar/primitives/sparselybin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def _numpy(self, data, weights, shape):
511511
self.bins[index]._numpy(None, c, [None])
512512
else:
513513
# all other cases ...
514-
selection = np.empty(q.shape, dtype=np.bool)
514+
selection = np.empty(q.shape, dtype=bool)
515515
for index in np.unique(selected):
516516
if index != LONG_NAN:
517517
bin = self.bins.get(index)

0 commit comments

Comments
 (0)