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