Fix some numpy deprecation warnings

This commit is contained in:
kris
2023-01-17 12:26:25 +00:00
parent d603445862
commit 4f6d7a796a
3 changed files with 5 additions and 5 deletions

View File

@@ -53,9 +53,9 @@ class Video:
)
# Accumulates pending edit weights across frames
self.update_priority = np.zeros((32, 256), dtype=np.int)
self.update_priority = np.zeros((32, 256), dtype=np.int32)
if self.mode == mode.DHGR:
self.aux_update_priority = np.zeros((32, 256), dtype=np.int)
self.aux_update_priority = np.zeros((32, 256), dtype=np.int32)
def tick(self, ticks: int) -> bool:
"""Keep track of when it is time for a new image frame."""