Skip to content

Commit fa288b6

Browse files
author
Alexander Litzenberger
authored
Get ride of np.bool deprecation warning. (#155)
* Get rid of DeprecationWarning * Get ride of np.bool deprecation warning.
1 parent c30f3fb commit fa288b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

motmetrics/mot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ def update(self, oids, hids, dists, frameid=None, vf=''):
175175

176176
self.dirty_events = True
177177
oids = np.asarray(oids)
178-
oids_masked = np.zeros_like(oids, dtype=np.bool)
178+
oids_masked = np.zeros_like(oids, dtype=np.bool_)
179179
hids = np.asarray(hids)
180-
hids_masked = np.zeros_like(hids, dtype=np.bool)
180+
hids_masked = np.zeros_like(hids, dtype=np.bool_)
181181
dists = np.atleast_2d(dists).astype(float).reshape(oids.shape[0], hids.shape[0]).copy()
182182

183183
if frameid is None:

0 commit comments

Comments
 (0)