Skip to content

Commit 9d46f72

Browse files
committed
remove in-file licenses
Signed-off-by: Thijs Baaijen <[email protected]>
1 parent fcc39aa commit 9d46f72

17 files changed

+15
-66
lines changed

power-grid-model-ds/introduction.ipynb

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,25 @@
7979
},
8080
{
8181
"cell_type": "code",
82-
"execution_count": null,
82+
"execution_count": 1,
8383
"id": "6ada3e60-8bd7-4687-9f29-3ae5ff029228",
8484
"metadata": {},
8585
"outputs": [],
8686
"source": [
87-
"# %load solutions/introduction_1_1_define_array_extensions"
87+
"# %load solutions/introduction_1_1_define_array_extensions\n",
88+
"# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project <[email protected]>\n",
89+
"#\n",
90+
"# SPDX-License-Identifier: MPL-2.0\n",
91+
"\n",
92+
"class MyNodeArray(NodeArray):\n",
93+
" _defaults = {\"x\": 0.0, \"y\": 0.0, \"u\": 0.0}\n",
94+
" x: NDArray[np.float64]\n",
95+
" y: NDArray[np.float64]\n",
96+
" u: NDArray[np.float64]\n",
97+
"\n",
98+
"class MyLineArray(LineArray):\n",
99+
" _defaults = {\"i_from\": 0.0}\n",
100+
" i_from: NDArray[np.float64]"
88101
]
89102
},
90103
{

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:

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:

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()

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.

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
"""

power-grid-model-ds/solutions/advanced_6_optimize_route_transfer.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 optimize_route_transfer(grid: Grid, connection_point: NodeArray, new_substation: NodeArray) -> None:
62
"""Attempt to optimize the route transfer moving the naturally open point (NOP) upstream towards the old substation.
73
This way, the new substation will take over more nodes of the original route.

power-grid-model-ds/solutions/introduction_1_1_define_array_extensions.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
class MyNodeArray(NodeArray):
62
_defaults = {"x": 0.0, "y": 0.0, "u": 0.0}
73
x: NDArray[np.float64]

power-grid-model-ds/solutions/introduction_1_2_define_my_grid.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
@dataclass
62
class ExtendedGrid(Grid):
73
node: MyNodeArray
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project <[email protected]>
2-
#
3-
# SPDX-License-Identifier: MPL-2.0
4-
51
grid = ExtendedGrid.empty()
62
grid

0 commit comments

Comments
 (0)