From 85b1d21777fe6c4da136b64f966c3fe24309ce5f Mon Sep 17 00:00:00 2001 From: Fabien Maussion Date: Tue, 20 Aug 2024 12:36:07 +0100 Subject: [PATCH] static image update (#252) --- salem/__init__.py | 2 +- salem/tests/test_graphics.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/salem/__init__.py b/salem/__init__.py index e6e6d93..d7bd7db 100644 --- a/salem/__init__.py +++ b/salem/__init__.py @@ -39,7 +39,7 @@ def _lazy_property(self): if not path.exists(download_dir): makedirs(download_dir) -sample_data_gh_commit = '454bf696324000d198f574a1bf5bc56e3e489051' +sample_data_gh_commit = 'aa0ddda63a8025787ffe9dba3219c7926acf33cd' sample_data_dir = path.join(cache_dir, 'salem-sample-data-' + sample_data_gh_commit) diff --git a/salem/tests/test_graphics.py b/salem/tests/test_graphics.py index 720e442..63f3c89 100644 --- a/salem/tests/test_graphics.py +++ b/salem/tests/test_graphics.py @@ -811,7 +811,7 @@ def test_hef_topo_withnan(): @requires_matplotlib @requires_static_key -@pytest.mark.mpl_image_compare(baseline_dir=baseline_dir, tolerance=25) +@pytest.mark.mpl_image_compare(baseline_dir=baseline_dir, tolerance=10) def test_gmap(): g = GoogleCenterMap(center_ll=(10.762660, 46.794221), zoom=13, size_x=640, size_y=640) @@ -830,7 +830,7 @@ def test_gmap(): @requires_matplotlib @requires_static_key -@pytest.mark.mpl_image_compare(baseline_dir=baseline_dir, tolerance=25) +@pytest.mark.mpl_image_compare(baseline_dir=baseline_dir, tolerance=10) def test_gmap_transformed(): dem = GeoTiff(get_demo_file('hef_srtm.tif')) dem.set_subset(margin=-100)