From d238f6e80fd578de402c58575b067f2be225b5bb Mon Sep 17 00:00:00 2001 From: Liam Berrisford Date: Tue, 6 Aug 2024 17:26:54 +0100 Subject: [PATCH] Refactor data.py to point to correct file --- data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data.py b/data.py index e644a84..cedc7c9 100644 --- a/data.py +++ b/data.py @@ -432,7 +432,7 @@ def get_uk_grids(): GeoDataFrame: A GeoDataFrame of the polygons for each of the grids in the UK Model alongside their centroid and unique ID. """ # Construct the full path to the data file - grid_filename = os.path.join(script_dir, "environmental_insights_data", "supporting_data", "1km_uk_grids.gpkg.gpkg") + grid_filename = os.path.join(script_dir, "environmental_insights_data", "supporting_data", "1km_uk_grids.gpkg") uk_grids = gpd.read_file(grid_filename) uk_grids["geometry Centroid"] = uk_grids["geometry"].centroid uk_grids = uk_grids.rename(columns={"Grid ID": "UK Model Grid ID"})