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
1 changed files with 1 additions and 1 deletions

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