Skip to content

Commit

Permalink
include explanation voronois
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosEpia committed Nov 22, 2023
1 parent 489eebe commit b5c65de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/egon/data/datasets/gas_areas.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ def create_voronoi(scn_name, carrier):
return

# generate voronois
# For some scenarios it is defined that there is only 1 bus (e.g. gas). It
# means that there will be just 1 voronoi covering the entire german
# territory. For other scenarios with more buses, voronois are calculated.
if len(buses) == 1:
gdf = buses.copy()
gdf.at[0, "geom"] = boundary.at[0, "geometry"]
Expand Down

0 comments on commit b5c65de

Please sign in to comment.