Skip to content

Commit

Permalink
misc: Fix scipy ascent import
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeLeibowitz committed Jan 8, 2025
1 parent 71e7eda commit 3a2eb67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_builtins.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 3a2eb67

Please sign in to comment.