Fixes for newer numpy version
numpy.int was deprecated in numpy 1.20, using numpy.int32 instead
This commit is contained in:
1 parent
b7b98f7f17
commit
690b4ebd3c
1 file changed
+2
-2
@@ -57,8 +57,8 @@ colors = np.array([
|
||||
|
||||
colors = np.reshape(colors, (colors.size//3, 3))
|
||||
|
||||
grid = np.zeros((Ny,Nx), dtype=np.int)
|
||||
gridout = np.zeros((Ny,Nx), dtype=np.int)
|
||||
grid = np.zeros((Ny,Nx), dtype=np.int32)
|
||||
gridout = np.zeros((Ny,Nx), dtype=np.int32)
|
||||
grid[0,:].fill(colors.shape[0]-1)
|
||||
|
||||
clock = pygame.time.Clock()
|
||||
|
||||
Reference in new issue
Block a user