From 21c7ddc11444dcd7ac1cfdb3fd80fc2da84ea280 Mon Sep 17 00:00:00 2001 From: Claudio Satriano Date: Fri, 10 Jan 2025 18:17:53 +0100 Subject: [PATCH] Ignore shapely RuntimeWarnings. They are produced by Cartopy when plotting coastlines, but the result seems to be correct. --- sourcespec/ssp_plot_stations.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sourcespec/ssp_plot_stations.py b/sourcespec/ssp_plot_stations.py index 40496025..1bc44e0d 100644 --- a/sourcespec/ssp_plot_stations.py +++ b/sourcespec/ssp_plot_stations.py @@ -47,6 +47,10 @@ # Ignore Shapely deprecation warnings, since they depend on Cartopy from shapely.errors import ShapelyDeprecationWarning warnings.filterwarnings('ignore', category=ShapelyDeprecationWarning) + # Ignore shapely RuntimeWarnings. They are produced by Cartopy when + # plotting coastlines, but the result seems to be correct. + warnings.filterwarnings( + 'ignore', category=RuntimeWarning, module='shapely') TILER = { 'hillshade': EsriHillshade, 'hillshade_dark': EsriHillshadeDark,