We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfb3ae9 commit 737a6e5Copy full SHA for 737a6e5
1 file changed
xrspatial/tests/test_utils.py
@@ -4,26 +4,7 @@
4
import warnings
5
6
7
-from xrspatial.datasets import make_terrain
8
from xrspatial import utils
9
-from xrspatial.tests.general_checks import dask_array_available
10
-
11
12
-try:
13
- import datashader # noqa: F401
14
- _has_datashader = True
15
-except ImportError:
16
- _has_datashader = False
17
18
19
-@pytest.mark.skipif(not _has_datashader, reason="datashader not installed")
20
-@dask_array_available
21
-def test_canvas_like():
22
- # aspect ratio is 1:1
23
- terrain_shape = (1000, 1000)
24
- terrain = make_terrain(shape=terrain_shape)
25
- terrain_res = utils.canvas_like(terrain, width=50)
26
- assert terrain_res.shape == (50, 50)
27
28
29
def test_warn_if_unit_mismatch_degrees_horizontal_elevation_vertical(monkeypatch):
0 commit comments