Skip to content

Commit

Permalink
Workaround unstable Natural Earth URL
Browse files Browse the repository at this point in the history
  • Loading branch information
valentjn committed Sep 2, 2021
1 parent b3d1186 commit 602f6f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/plotStats.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ def plotStats() -> None:


def plotMap() -> None:
# workaround needed for Cartopy until https://github.com/SciTools/cartopy/pull/1833 is released
cartopy.config["downloaders"][("shapefiles", "natural_earth")].url_template = (
"https://naturalearth.s3.amazonaws.com/{resolution}_{category}/ne_{resolution}_{name}.zip")

mapPath = repoDirPath.joinpath("_data", "stats", "map.json")
with open(mapPath, "r") as f: map_ = json.load(f)

Expand Down

0 comments on commit 602f6f7

Please sign in to comment.