From 3d29e874c8f69e1c758db0bbf2c4979d71b19480 Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Mon, 17 Feb 2025 12:10:45 -0700 Subject: [PATCH] Change to `np.NAN` --> `np.nan` This is deprecated and removed fully in numpy 2.0. Please see: https://numpy.org/doc/1.26/reference/constants.html#numpy.NAN --- lectures/money_inflation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/money_inflation.md b/lectures/money_inflation.md index d7e37ecd..420b237f 100644 --- a/lectures/money_inflation.md +++ b/lectures/money_inflation.md @@ -901,7 +901,7 @@ def draw_iterations(p0s, model, line_params, num_steps): axes[1].plot(time_steps, P, **line_params) # Calculate R_t - R = np.insert(P[:-1] / P[1:], 0, np.NAN) + R = np.insert(P[:-1] / P[1:], 0, np.nan) axes[2].plot(time_steps, R, **line_params) # Add line and text annotations to the subgraph