Skip to content

Commit

Permalink
Refactor data.py to point to correct file
Browse files Browse the repository at this point in the history
  • Loading branch information
berrli committed Aug 6, 2024
1 parent 8909060 commit d238f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down

0 comments on commit d238f6e

Please sign in to comment.