Skip to content

Commit 37748f1

Browse files
authored
Merge pull request #33 from PowerGridModel/fix-solution-licenses
Fix solution licenses
2 parents fcc39aa + 03b27ab commit 37748f1

32 files changed

+48
-64
lines changed

power-grid-model-ds/solutions/advanced_3_check_for_capacity_issues.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project <[email protected]>
2-
#
3-
# SPDX-License-Identifier: MPL-2.0
4-
51
from power_grid_model_ds import PowerGridModelInterface
62

73
def check_for_capacity_issues(grid: Grid) -> LineArray:
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project <[email protected]>
2+
3+
SPDX-License-Identifier: MPL-2.0

power-grid-model-ds/solutions/advanced_4_build_new_substation.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project <[email protected]>
2-
#
3-
# SPDX-License-Identifier: MPL-2.0
4-
51
from power_grid_model_ds import PowerGridModelInterface
62

73
def check_for_capacity_issues(grid: Grid) -> LineArray:
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project <[email protected]>
2+
3+
SPDX-License-Identifier: MPL-2.0

power-grid-model-ds/solutions/advanced_5_1_get_all_congested_routes.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project <[email protected]>
2-
#
3-
# SPDX-License-Identifier: MPL-2.0
4-
51
def get_all_congested_routes(grid: Grid) -> list[NodeArray]:
62
"""Get all nodes on routes that contain an overloaded line."""
73
grid.set_feeder_ids()
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project <[email protected]>
2+
3+
SPDX-License-Identifier: MPL-2.0

power-grid-model-ds/solutions/advanced_5_2_find_connection_point.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project <[email protected]>
2-
#
3-
# SPDX-License-Identifier: MPL-2.0
4-
51
def find_connection_point(route: NodeArray, new_substation: NodeArray) -> NodeArray:
62
"""Calculate the connection point for the new route.
73
This should be the geographically closest node to the new substation.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project <[email protected]>
2+
3+
SPDX-License-Identifier: MPL-2.0

power-grid-model-ds/solutions/advanced_5_3_connect_to_route.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project <[email protected]>
2-
#
3-
# SPDX-License-Identifier: MPL-2.0
4-
51
def connect_to_route(grid: Grid, connection_point: NodeArray, new_substation: NodeArray) -> None:
62
"""Connect the new substation node to the connection point.
73
"""
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project <[email protected]>
2+
3+
SPDX-License-Identifier: MPL-2.0

0 commit comments

Comments
 (0)