diff --git a/power-grid-model-ds/solutions/advanced_3_check_for_capacity_issues.py b/power-grid-model-ds/solutions/advanced_3_check_for_capacity_issues.py index 13c9869..1ea9f8e 100644 --- a/power-grid-model-ds/solutions/advanced_3_check_for_capacity_issues.py +++ b/power-grid-model-ds/solutions/advanced_3_check_for_capacity_issues.py @@ -1,7 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - from power_grid_model_ds import PowerGridModelInterface def check_for_capacity_issues(grid: Grid) -> LineArray: diff --git a/power-grid-model-ds/solutions/advanced_3_check_for_capacity_issues.py.license b/power-grid-model-ds/solutions/advanced_3_check_for_capacity_issues.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/advanced_3_check_for_capacity_issues.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/advanced_4_build_new_substation.py b/power-grid-model-ds/solutions/advanced_4_build_new_substation.py index 13c9869..1ea9f8e 100644 --- a/power-grid-model-ds/solutions/advanced_4_build_new_substation.py +++ b/power-grid-model-ds/solutions/advanced_4_build_new_substation.py @@ -1,7 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - from power_grid_model_ds import PowerGridModelInterface def check_for_capacity_issues(grid: Grid) -> LineArray: diff --git a/power-grid-model-ds/solutions/advanced_4_build_new_substation.py.license b/power-grid-model-ds/solutions/advanced_4_build_new_substation.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/advanced_4_build_new_substation.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/advanced_5_1_get_all_congested_routes.py b/power-grid-model-ds/solutions/advanced_5_1_get_all_congested_routes.py index f4f4bd3..86fbaed 100644 --- a/power-grid-model-ds/solutions/advanced_5_1_get_all_congested_routes.py +++ b/power-grid-model-ds/solutions/advanced_5_1_get_all_congested_routes.py @@ -1,7 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - def get_all_congested_routes(grid: Grid) -> list[NodeArray]: """Get all nodes on routes that contain an overloaded line.""" grid.set_feeder_ids() diff --git a/power-grid-model-ds/solutions/advanced_5_1_get_all_congested_routes.py.license b/power-grid-model-ds/solutions/advanced_5_1_get_all_congested_routes.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/advanced_5_1_get_all_congested_routes.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/advanced_5_2_find_connection_point.py b/power-grid-model-ds/solutions/advanced_5_2_find_connection_point.py index 58e0b63..807ed77 100644 --- a/power-grid-model-ds/solutions/advanced_5_2_find_connection_point.py +++ b/power-grid-model-ds/solutions/advanced_5_2_find_connection_point.py @@ -1,7 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - def find_connection_point(route: NodeArray, new_substation: NodeArray) -> NodeArray: """Calculate the connection point for the new route. This should be the geographically closest node to the new substation. diff --git a/power-grid-model-ds/solutions/advanced_5_2_find_connection_point.py.license b/power-grid-model-ds/solutions/advanced_5_2_find_connection_point.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/advanced_5_2_find_connection_point.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/advanced_5_3_connect_to_route.py b/power-grid-model-ds/solutions/advanced_5_3_connect_to_route.py index f4d1705..ddd5961 100644 --- a/power-grid-model-ds/solutions/advanced_5_3_connect_to_route.py +++ b/power-grid-model-ds/solutions/advanced_5_3_connect_to_route.py @@ -1,7 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - def connect_to_route(grid: Grid, connection_point: NodeArray, new_substation: NodeArray) -> None: """Connect the new substation node to the connection point. """ diff --git a/power-grid-model-ds/solutions/advanced_5_3_connect_to_route.py.license b/power-grid-model-ds/solutions/advanced_5_3_connect_to_route.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/advanced_5_3_connect_to_route.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/advanced_6_optimize_route_transfer.py b/power-grid-model-ds/solutions/advanced_6_optimize_route_transfer.py index e4db730..42d981d 100644 --- a/power-grid-model-ds/solutions/advanced_6_optimize_route_transfer.py +++ b/power-grid-model-ds/solutions/advanced_6_optimize_route_transfer.py @@ -1,7 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - def optimize_route_transfer(grid: Grid, connection_point: NodeArray, new_substation: NodeArray) -> None: """Attempt to optimize the route transfer moving the naturally open point (NOP) upstream towards the old substation. This way, the new substation will take over more nodes of the original route. diff --git a/power-grid-model-ds/solutions/advanced_6_optimize_route_transfer.py.license b/power-grid-model-ds/solutions/advanced_6_optimize_route_transfer.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/advanced_6_optimize_route_transfer.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/introduction_1_1_define_array_extensions.py b/power-grid-model-ds/solutions/introduction_1_1_define_array_extensions.py index 6682d2b..90bb9b8 100644 --- a/power-grid-model-ds/solutions/introduction_1_1_define_array_extensions.py +++ b/power-grid-model-ds/solutions/introduction_1_1_define_array_extensions.py @@ -1,7 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - class MyNodeArray(NodeArray): _defaults = {"x": 0.0, "y": 0.0, "u": 0.0} x: NDArray[np.float64] diff --git a/power-grid-model-ds/solutions/introduction_1_1_define_array_extensions.py.license b/power-grid-model-ds/solutions/introduction_1_1_define_array_extensions.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/introduction_1_1_define_array_extensions.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/introduction_1_2_define_my_grid.py b/power-grid-model-ds/solutions/introduction_1_2_define_my_grid.py index 40ea049..1123da4 100644 --- a/power-grid-model-ds/solutions/introduction_1_2_define_my_grid.py +++ b/power-grid-model-ds/solutions/introduction_1_2_define_my_grid.py @@ -1,7 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - @dataclass class ExtendedGrid(Grid): node: MyNodeArray diff --git a/power-grid-model-ds/solutions/introduction_1_2_define_my_grid.py.license b/power-grid-model-ds/solutions/introduction_1_2_define_my_grid.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/introduction_1_2_define_my_grid.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/introduction_1_3_grid_empty.py b/power-grid-model-ds/solutions/introduction_1_3_grid_empty.py index e4ff136..598b800 100644 --- a/power-grid-model-ds/solutions/introduction_1_3_grid_empty.py +++ b/power-grid-model-ds/solutions/introduction_1_3_grid_empty.py @@ -1,6 +1,2 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - grid = ExtendedGrid.empty() grid \ No newline at end of file diff --git a/power-grid-model-ds/solutions/introduction_1_3_grid_empty.py.license b/power-grid-model-ds/solutions/introduction_1_3_grid_empty.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/introduction_1_3_grid_empty.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/introduction_1_3_grid_verification.py b/power-grid-model-ds/solutions/introduction_1_3_grid_verification.py index 9291ef7..f1a0cb3 100644 --- a/power-grid-model-ds/solutions/introduction_1_3_grid_verification.py +++ b/power-grid-model-ds/solutions/introduction_1_3_grid_verification.py @@ -1,7 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - print("Node 'u' field exists?", hasattr(grid.node, "u")) print("Line 'i_from' field exists?", hasattr(grid.line, "i_from")) print("Node array:", grid.node) \ No newline at end of file diff --git a/power-grid-model-ds/solutions/introduction_1_3_grid_verification.py.license b/power-grid-model-ds/solutions/introduction_1_3_grid_verification.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/introduction_1_3_grid_verification.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/introduction_2_1_add_substation.py b/power-grid-model-ds/solutions/introduction_2_1_add_substation.py index 023e8ef..3d8f28a 100644 --- a/power-grid-model-ds/solutions/introduction_2_1_add_substation.py +++ b/power-grid-model-ds/solutions/introduction_2_1_add_substation.py @@ -1,7 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - # Create a substation node entry substation_node = MyNodeArray( id=[101], diff --git a/power-grid-model-ds/solutions/introduction_2_1_add_substation.py.license b/power-grid-model-ds/solutions/introduction_2_1_add_substation.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/introduction_2_1_add_substation.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/introduction_2_2_add_node.py b/power-grid-model-ds/solutions/introduction_2_2_add_node.py index fca1ad6..78a33dc 100644 --- a/power-grid-model-ds/solutions/introduction_2_2_add_node.py +++ b/power-grid-model-ds/solutions/introduction_2_2_add_node.py @@ -1,7 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - # Create another node load_node = MyNodeArray( id=[102], diff --git a/power-grid-model-ds/solutions/introduction_2_2_add_node.py.license b/power-grid-model-ds/solutions/introduction_2_2_add_node.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/introduction_2_2_add_node.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/introduction_2_3_add_line.py b/power-grid-model-ds/solutions/introduction_2_3_add_line.py index feafe8a..fa6fdc4 100644 --- a/power-grid-model-ds/solutions/introduction_2_3_add_line.py +++ b/power-grid-model-ds/solutions/introduction_2_3_add_line.py @@ -1,7 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - # Create a line between node 101 and 102 new_line = MyLineArray( id=[201], diff --git a/power-grid-model-ds/solutions/introduction_2_3_add_line.py.license b/power-grid-model-ds/solutions/introduction_2_3_add_line.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/introduction_2_3_add_line.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/introduction_2_4_add_load.py b/power-grid-model-ds/solutions/introduction_2_4_add_load.py index ffd72cc..b7d45c9 100644 --- a/power-grid-model-ds/solutions/introduction_2_4_add_load.py +++ b/power-grid-model-ds/solutions/introduction_2_4_add_load.py @@ -1,7 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - # Create a load at node 102 load = SymLoadArray( id=[401], diff --git a/power-grid-model-ds/solutions/introduction_2_4_add_load.py.license b/power-grid-model-ds/solutions/introduction_2_4_add_load.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/introduction_2_4_add_load.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/introduction_2_5_add_source.py b/power-grid-model-ds/solutions/introduction_2_5_add_source.py index 08384e1..55c2ebd 100644 --- a/power-grid-model-ds/solutions/introduction_2_5_add_source.py +++ b/power-grid-model-ds/solutions/introduction_2_5_add_source.py @@ -1,7 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - # Create a source at node 101 source = SourceArray( id=[501], diff --git a/power-grid-model-ds/solutions/introduction_2_5_add_source.py.license b/power-grid-model-ds/solutions/introduction_2_5_add_source.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/introduction_2_5_add_source.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/power-grid-model-ds/solutions/introduction_2_6_check_ids.py b/power-grid-model-ds/solutions/introduction_2_6_check_ids.py index d8a1bc7..a457c3d 100644 --- a/power-grid-model-ds/solutions/introduction_2_6_check_ids.py +++ b/power-grid-model-ds/solutions/introduction_2_6_check_ids.py @@ -1,5 +1 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project -# -# SPDX-License-Identifier: MPL-2.0 - grid.check_ids() \ No newline at end of file diff --git a/power-grid-model-ds/solutions/introduction_2_6_check_ids.py.license b/power-grid-model-ds/solutions/introduction_2_6_check_ids.py.license new file mode 100644 index 0000000..7fa378e --- /dev/null +++ b/power-grid-model-ds/solutions/introduction_2_6_check_ids.py.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0