Fix deprecated np.bool
This commit is contained in:
parent
389e83d492
commit
a023dc8322
|
@ -245,7 +245,7 @@ class Database(Profiler):
|
|||
while not allocated:
|
||||
cache_size = 2**cache_width
|
||||
try:
|
||||
self.ip4cache = numpy.zeros(cache_size, dtype=numpy.bool)
|
||||
self.ip4cache = numpy.zeros(cache_size, dtype=bool)
|
||||
except MemoryError:
|
||||
self.log.exception(
|
||||
"Could not allocate cache. Retrying a smaller one.")
|
||||
|
|
Loading…
Reference in a new issue