Browse Source

Fix deprecated np.bool

master
Geoffrey Frogeye 4 months ago
parent
commit
a023dc8322
Signed by: geoffrey GPG Key ID: C72403E7F82E6AD8
  1. 2
      database.py

2
database.py

@ -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…
Cancel
Save