Skip to content

Commit

Permalink
Calculate location of a microgrid center (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekatef authored Oct 27, 2023
1 parent a9b988a commit aea6f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def create_bus_regions(microgrids_list, output_path):
microgrid_names.append(microgrid_name)

# Centre of the rectangle of the microgrid
x = 7.499138
y = 9.106406
x = (values[0] + values[1]) / 2
y = (values[2] + values[3]) / 2
microgrid_x.append(x)
microgrid_y.append(y)

Expand Down

0 comments on commit aea6f9b

Please sign in to comment.