From 982f071ab5e8784c268e6866cd90fbd294acb756 Mon Sep 17 00:00:00 2001 From: Emmanuel Kasper Date: Mon, 6 Oct 2025 14:22:20 +0200 Subject: [PATCH] Fix deprecation warning about importing gaussian_filter from the wrong namespace This commit fixes the following warning: ``` DeprecationWarning: Please use `gaussian_filter` from the `scipy.ndimage` namespace, the `scipy.ndimage.filters` namespace is deprecated. ``` After this commit is applied, it is possible to rerun all cells of the index.ipynb notebook without any warnings or errors. Tested on Ubuntu 22 / Python 3.10 / scipy 1.8.0 and Debian 13 / Python 3.13 / scipy 1.15.3 --- index.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ipynb b/index.ipynb index eefee3df..00809ac8 100644 --- a/index.ipynb +++ b/index.ipynb @@ -46,7 +46,7 @@ "outputs": [], "source": [ "from numpy import random\n", - "from scipy.ndimage.filters import gaussian_filter" + "from scipy.ndimage import gaussian_filter" ] }, {