From efaa3ffb5fb3c4de7f12b6b47456d5f6c544867b Mon Sep 17 00:00:00 2001 From: kuramogura <85446452+kuramogura@users.noreply.github.com> Date: Mon, 5 Jul 2021 15:15:02 +0900 Subject: [PATCH] [short_path] Fix DeprecationWarning --- lectures/short_path.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lectures/short_path.md b/lectures/short_path.md index a08d12061..30666d0fc 100644 --- a/lectures/short_path.md +++ b/lectures/short_path.md @@ -222,8 +222,8 @@ Let's try with this example and see how we go: ```{code-cell} python3 nodes = range(7) # Nodes = 0, 1, ..., 6 -J = np.zeros_like(nodes, dtype=np.int) # Initial guess -next_J = np.empty_like(nodes, dtype=np.int) # Stores updated guess +J = np.zeros_like(nodes, dtype=int) # Initial guess +next_J = np.empty_like(nodes, dtype=int) # Stores updated guess max_iter = 500 i = 0