From 9d46f72ac0a9be5c0633e615448e168e0df45bec Mon Sep 17 00:00:00 2001 From: Thijs Baaijen <13253091+Thijss@users.noreply.github.com> Date: Wed, 21 May 2025 08:28:34 +0200 Subject: [PATCH 1/3] remove in-file licenses Signed-off-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com> --- power-grid-model-ds/introduction.ipynb | 17 +++++++++++++++-- .../advanced_3_check_for_capacity_issues.py | 4 ---- .../advanced_4_build_new_substation.py | 4 ---- .../advanced_5_1_get_all_congested_routes.py | 4 ---- .../advanced_5_2_find_connection_point.py | 4 ---- .../solutions/advanced_5_3_connect_to_route.py | 4 ---- .../advanced_6_optimize_route_transfer.py | 4 ---- .../introduction_1_1_define_array_extensions.py | 4 ---- .../introduction_1_2_define_my_grid.py | 4 ---- .../solutions/introduction_1_3_grid_empty.py | 4 ---- .../introduction_1_3_grid_verification.py | 4 ---- .../introduction_2_1_add_substation.py | 4 ---- .../solutions/introduction_2_2_add_node.py | 4 ---- .../solutions/introduction_2_3_add_line.py | 4 ---- .../solutions/introduction_2_4_add_load.py | 4 ---- .../solutions/introduction_2_5_add_source.py | 4 ---- .../solutions/introduction_2_6_check_ids.py | 4 ---- 17 files changed, 15 insertions(+), 66 deletions(-) diff --git a/power-grid-model-ds/introduction.ipynb b/power-grid-model-ds/introduction.ipynb index c219ca0..04eaf67 100644 --- a/power-grid-model-ds/introduction.ipynb +++ b/power-grid-model-ds/introduction.ipynb @@ -79,12 +79,25 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "id": "6ada3e60-8bd7-4687-9f29-3ae5ff029228", "metadata": {}, "outputs": [], "source": [ - "# %load solutions/introduction_1_1_define_array_extensions" + "# %load solutions/introduction_1_1_define_array_extensions\n", + "# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project \n", + "#\n", + "# SPDX-License-Identifier: MPL-2.0\n", + "\n", + "class MyNodeArray(NodeArray):\n", + " _defaults = {\"x\": 0.0, \"y\": 0.0, \"u\": 0.0}\n", + " x: NDArray[np.float64]\n", + " y: NDArray[np.float64]\n", + " u: NDArray[np.float64]\n", + "\n", + "class MyLineArray(LineArray):\n", + " _defaults = {\"i_from\": 0.0}\n", + " i_from: NDArray[np.float64]" ] }, { 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_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_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_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_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_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/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_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_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_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_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_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_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_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_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_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 From d76e641f35042dc1c85b4159f1fa71c624bea2f6 Mon Sep 17 00:00:00 2001 From: Thijs Baaijen <13253091+Thijss@users.noreply.github.com> Date: Wed, 21 May 2025 08:29:12 +0200 Subject: [PATCH 2/3] add .license files Signed-off-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com> --- .../solutions/advanced_3_check_for_capacity_issues.py.license | 3 +++ .../solutions/advanced_4_build_new_substation.py.license | 3 +++ .../solutions/advanced_5_1_get_all_congested_routes.py.license | 3 +++ .../solutions/advanced_5_2_find_connection_point.py.license | 3 +++ .../solutions/advanced_5_3_connect_to_route.py.license | 3 +++ .../solutions/advanced_6_optimize_route_transfer.py.license | 3 +++ .../introduction_1_1_define_array_extensions.py.license | 3 +++ .../solutions/introduction_1_2_define_my_grid.py.license | 3 +++ .../solutions/introduction_1_3_grid_empty.py.license | 3 +++ .../solutions/introduction_1_3_grid_verification.py.license | 3 +++ .../solutions/introduction_2_1_add_substation.py.license | 3 +++ .../solutions/introduction_2_2_add_node.py.license | 3 +++ .../solutions/introduction_2_3_add_line.py.license | 3 +++ .../solutions/introduction_2_4_add_load.py.license | 3 +++ .../solutions/introduction_2_5_add_source.py.license | 3 +++ .../solutions/introduction_2_6_check_ids.py.license | 3 +++ 16 files changed, 48 insertions(+) create mode 100644 power-grid-model-ds/solutions/advanced_3_check_for_capacity_issues.py.license create mode 100644 power-grid-model-ds/solutions/advanced_4_build_new_substation.py.license create mode 100644 power-grid-model-ds/solutions/advanced_5_1_get_all_congested_routes.py.license create mode 100644 power-grid-model-ds/solutions/advanced_5_2_find_connection_point.py.license create mode 100644 power-grid-model-ds/solutions/advanced_5_3_connect_to_route.py.license create mode 100644 power-grid-model-ds/solutions/advanced_6_optimize_route_transfer.py.license create mode 100644 power-grid-model-ds/solutions/introduction_1_1_define_array_extensions.py.license create mode 100644 power-grid-model-ds/solutions/introduction_1_2_define_my_grid.py.license create mode 100644 power-grid-model-ds/solutions/introduction_1_3_grid_empty.py.license create mode 100644 power-grid-model-ds/solutions/introduction_1_3_grid_verification.py.license create mode 100644 power-grid-model-ds/solutions/introduction_2_1_add_substation.py.license create mode 100644 power-grid-model-ds/solutions/introduction_2_2_add_node.py.license create mode 100644 power-grid-model-ds/solutions/introduction_2_3_add_line.py.license create mode 100644 power-grid-model-ds/solutions/introduction_2_4_add_load.py.license create mode 100644 power-grid-model-ds/solutions/introduction_2_5_add_source.py.license create mode 100644 power-grid-model-ds/solutions/introduction_2_6_check_ids.py.license 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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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 From 03b27abfdaf66e6b6524a50aafdbbe6503714349 Mon Sep 17 00:00:00 2001 From: Thijs Baaijen <13253091+Thijss@users.noreply.github.com> Date: Wed, 21 May 2025 08:30:05 +0200 Subject: [PATCH 3/3] revert changes Signed-off-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com> --- power-grid-model-ds/introduction.ipynb | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/power-grid-model-ds/introduction.ipynb b/power-grid-model-ds/introduction.ipynb index 04eaf67..c219ca0 100644 --- a/power-grid-model-ds/introduction.ipynb +++ b/power-grid-model-ds/introduction.ipynb @@ -79,25 +79,12 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "6ada3e60-8bd7-4687-9f29-3ae5ff029228", "metadata": {}, "outputs": [], "source": [ - "# %load solutions/introduction_1_1_define_array_extensions\n", - "# SPDX-FileCopyrightText: 2025 Contributors to the Power Grid Model project \n", - "#\n", - "# SPDX-License-Identifier: MPL-2.0\n", - "\n", - "class MyNodeArray(NodeArray):\n", - " _defaults = {\"x\": 0.0, \"y\": 0.0, \"u\": 0.0}\n", - " x: NDArray[np.float64]\n", - " y: NDArray[np.float64]\n", - " u: NDArray[np.float64]\n", - "\n", - "class MyLineArray(LineArray):\n", - " _defaults = {\"i_from\": 0.0}\n", - " i_from: NDArray[np.float64]" + "# %load solutions/introduction_1_1_define_array_extensions" ] }, {