From 3a2eb67e7c38eec9a2b897bdce7e3db414f26ac9 Mon Sep 17 00:00:00 2001 From: ZoeLeibowitz Date: Wed, 8 Jan 2025 09:13:18 +0000 Subject: [PATCH] misc: Fix scipy ascent import --- tests/test_builtins.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_builtins.py b/tests/test_builtins.py index 102875d35a..483bd6a135 100644 --- a/tests/test_builtins.py +++ b/tests/test_builtins.py @@ -1,7 +1,10 @@ import pytest import numpy as np from scipy.ndimage import gaussian_filter -from scipy.misc import ascent +try: + from scipy.datasets import ascent +except ImportError: + from scipy.misc import ascent from devito import ConditionalDimension, Grid, Function, TimeFunction, switchconfig from devito.builtins import (assign, norm, gaussian_smooth, initialize_function,