From 7582a68eb7433d52fa70d53d076c5a36922885fe Mon Sep 17 00:00:00 2001 From: Arno Eigenwillig Date: Thu, 8 Aug 2024 09:11:53 -0700 Subject: [PATCH] In colab demo, spell `scipy.signal.windows.triang` with subpackage (preferred as of scipy 1.1.0, required more recently). PiperOrigin-RevId: 660861750 --- examples/notebooks/graph_network_shortest_path.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/notebooks/graph_network_shortest_path.ipynb b/examples/notebooks/graph_network_shortest_path.ipynb index 9d6508ab..26240b39 100644 --- a/examples/notebooks/graph_network_shortest_path.ipynb +++ b/examples/notebooks/graph_network_shortest_path.ipynb @@ -1403,7 +1403,7 @@ " x = steps_curve\n", " y = [d[k] for d in data_list]\n", "\n", - " window = signal.triang(1 + 2 * smoooth_window_half_width)\n", + " window = signal.windows.triang(1 + 2 * smoooth_window_half_width)\n", " window /= window.sum()\n", " y = signal.convolve(y, window, mode=\"valid\")\n", " x = x[smoooth_window_half_width:-smoooth_window_half_width]\n",