Skip to content

Commit

Permalink
In colab demo, spell scipy.signal.windows.triang with subpackage
Browse files Browse the repository at this point in the history
(preferred as of scipy 1.1.0, required more recently).

PiperOrigin-RevId: 661209330
  • Loading branch information
arnoegw authored and tensorflower-gardener committed Aug 9, 2024
1 parent 2e0a20c commit 61fc149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/notebooks/graph_network_shortest_path.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 61fc149

Please sign in to comment.