We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08fe827 commit 76f2c9dCopy full SHA for 76f2c9d
1 file changed
autotest/utilities/test_gdalalg_raster_viewshed.py
@@ -11,7 +11,7 @@
11
# SPDX-License-Identifier: MIT
12
###############################################################################
13
14
-import numpy as np
+import gdaltest
15
import pytest
16
17
from osgeo import gdal
@@ -276,6 +276,11 @@ def test_gdalalg_raster_mode_ground(viewshed_input):
276
277
def test_gdalalg_raster_sd(viewshed_input, viewshed_sd_input):
278
279
+ # Some test configurations don't support numpy. This will skip those
280
+ # configurations.
281
+ np = pytest.importorskip("numpy")
282
+ gdaltest.importorskip_gdal_array()
283
+
284
alg = get_alg()
285
alg["input"] = viewshed_input
286
alg["sd-filename"] = viewshed_sd_input
0 commit comments