SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 98063a02 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

perf(graphs): :bento: add world map to graphs static

parent cb0b2c6e
No related branches found
No related tags found
No related merge requests found
......@@ -31,11 +31,11 @@ AVAILABLE_MPL_THEMES = {
import geopandas as gpd
from django.conf import settings
world_map_file_URL = (
"http://naturalearth.s3.amazonaws.com/110m_cultural/ne_110m_admin_0_countries.zip"
BASE_WORLD = gpd.read_file(
settings.STATIC_ROOT + "graphs/ne_110m_admin_0_countries.zip"
)
BASE_WORLD = gpd.read_file(world_map_file_URL)
columns_to_keep = ["NAME", "CONTINENT", "TYPE", "LEVEL", "ISO_A2_EH", "geometry"]
BASE_WORLD = BASE_WORLD[columns_to_keep]
......
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment