Fix deprecated np.bool

This commit is contained in:
Geoffrey Frogeye 2021-08-14 23:21:03 +02:00
parent 389e83d492
commit a023dc8322
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -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.")