|
2 | 2 | "cells": [ |
3 | 3 | { |
4 | 4 | "cell_type": "code", |
5 | | - "execution_count": 2, |
| 5 | + "execution_count": null, |
6 | 6 | "id": "59d49e29", |
7 | 7 | "metadata": {}, |
8 | | - "outputs": [ |
9 | | - { |
10 | | - "name": "stdout", |
11 | | - "output_type": "stream", |
12 | | - "text": [ |
13 | | - "\n", |
14 | | - "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m24.2\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.1.1\u001b[0m\n", |
15 | | - "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n" |
16 | | - ] |
17 | | - } |
18 | | - ], |
| 8 | + "outputs": [], |
19 | 9 | "source": [ |
20 | 10 | "!pip install pandas power-grid-model-ds[visualizer] --quiet" |
21 | 11 | ] |
|
41 | 31 | }, |
42 | 32 | { |
43 | 33 | "cell_type": "code", |
44 | | - "execution_count": 3, |
| 34 | + "execution_count": null, |
45 | 35 | "id": "cf475775", |
46 | 36 | "metadata": {}, |
47 | 37 | "outputs": [], |
|
61 | 51 | "metadata": {}, |
62 | 52 | "source": [ |
63 | 53 | "# 🧪 Step 1: Extend the Data Model\n", |
64 | | - "Goal: Add coordinate fields to nodes and fields for tracking simulated voltages and line currents.\n", |
| 54 | + "Goal: Add coordinate fields and tracking for simulated voltages and line currents. This allows us to store and analyse metadata of the grid needed to to decide where to invest in the grid.\n", |
65 | 55 | "\n", |
66 | | - "We subclass NodeArray and LineArray to add:\n", |
| 56 | + "You’ll subclass NodeArray and LineArray to add:\n", |
67 | 57 | "\n", |
68 | 58 | "- x, y coordinates for spatial logic and plotting\n", |
69 | 59 | "- u for node voltage results\n", |
70 | 60 | "- i_from for line currents\n", |
71 | | - "- A computed .is_overloaded property for easy filtering" |
| 61 | + "- A computed .is_overloaded property for easy filtering\n", |
| 62 | + "\n", |
| 63 | + "This shows how the Grid can be extended to suit the needs of a specific project." |
72 | 64 | ] |
73 | 65 | }, |
74 | 66 | { |
75 | 67 | "cell_type": "code", |
76 | | - "execution_count": 4, |
| 68 | + "execution_count": null, |
77 | 69 | "id": "37f4bd29", |
78 | 70 | "metadata": {}, |
79 | 71 | "outputs": [], |
|
115 | 107 | "metadata": {}, |
116 | 108 | "source": [ |
117 | 109 | "# 🏗️ Step 2: Load and Prepare the Grid\n", |
118 | | - "Goal: Load a synthetic medium-voltage grid from the provided data" |
| 110 | + "Goal: Load a synthetic medium-voltage grid from the provided data\n", |
119 | 111 | "(Code is already given in helper.py file, take a look to see how the grid data is loaded!)" |
120 | 112 | ] |
121 | 113 | }, |
122 | 114 | { |
123 | 115 | "cell_type": "code", |
124 | | - "execution_count": 5, |
| 116 | + "execution_count": null, |
125 | 117 | "id": "78d0639e", |
126 | 118 | "metadata": {}, |
127 | 119 | "outputs": [], |
|
163 | 155 | "execution_count": null, |
164 | 156 | "id": "206be67b", |
165 | 157 | "metadata": {}, |
166 | | - "outputs": [ |
167 | | - { |
168 | | - "name": "stdout", |
169 | | - "output_type": "stream", |
170 | | - "text": [ |
171 | | - "None\n" |
172 | | - ] |
173 | | - } |
174 | | - ], |
| 158 | + "outputs": [], |
175 | 159 | "source": [ |
176 | 160 | "# Hint: You can use the `is_overloaded` property of the `MyLineArray` class to check for overloaded lines.\n", |
177 | 161 | "# Hint: https://power-grid-model-ds.readthedocs.io/en/stable/quick_start.html#performing-power-flow-calculations\n", |
|
460 | 444 | ], |
461 | 445 | "metadata": { |
462 | 446 | "kernelspec": { |
463 | | - "display_name": "power-grid-model-workshop", |
| 447 | + "display_name": ".venv", |
464 | 448 | "language": "python", |
465 | 449 | "name": "python3" |
466 | 450 | }, |
|
474 | 458 | "name": "python", |
475 | 459 | "nbconvert_exporter": "python", |
476 | 460 | "pygments_lexer": "ipython3", |
477 | | - "version": "undefined.undefined.undefined" |
| 461 | + "version": "3.12.6" |
478 | 462 | } |
479 | 463 | }, |
480 | 464 | "nbformat": 4, |
|
0 commit comments