Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Thijs Baaijen <[email protected]>
  • Loading branch information
Thijss committed Feb 5, 2025
1 parent 0dddcf2 commit 960a09d
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions docs/examples/utils/grid_from_txt_examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"outputs": [],
"source": [
"from pathlib import Path\n",
"\n",
"from power_grid_model_ds import Grid\n",
"\n",
"txt_file_path = Path(\"../../_static/my_grid.txt\")\n",
Expand All @@ -89,16 +90,18 @@
"source": [
"from power_grid_model_ds import Grid\n",
"\n",
"grid = Grid.from_txt([\n",
" \"S1 2\",\n",
" \"S1 3 open\",\n",
" \"2 7\",\n",
" \"3 5\",\n",
" \"3 6 transformer\",\n",
" \"5 7\",\n",
" \"7 8\",\n",
" \"8 9\",\n",
"])"
"grid = Grid.from_txt(\n",
" [\n",
" \"S1 2\",\n",
" \"S1 3 open\",\n",
" \"2 7\",\n",
" \"3 5\",\n",
" \"3 6 transformer\",\n",
" \"5 7\",\n",
" \"7 8\",\n",
" \"8 9\",\n",
" ]\n",
")"
]
},
{
Expand Down

0 comments on commit 960a09d

Please sign in to comment.