Skip to content

Commit

Permalink
Ignore shapely RuntimeWarnings.
Browse files Browse the repository at this point in the history
They are produced by Cartopy when plotting coastlines,
but the result seems to be correct.
  • Loading branch information
claudiodsf committed Jan 10, 2025
1 parent ba306d3 commit 21c7ddc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sourcespec/ssp_plot_stations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 21c7ddc

Please sign in to comment.