Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 4 additions & 24 deletions examples/Asymmetric Calculation Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,7 @@
"cell_type": "code",
"execution_count": 6,
"id": "4e25006f",
"metadata": {
"scrolled": true
},
"metadata": {},
Comment thread
figueroa1395 marked this conversation as resolved.
Outdated
"outputs": [],
"source": [
"# Validation (optional)\n",
Expand Down Expand Up @@ -333,9 +331,7 @@
"cell_type": "code",
"execution_count": 7,
"id": "afccf7a2",
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -414,9 +410,7 @@
"cell_type": "code",
"execution_count": 8,
"id": "9af1be38",
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -817,22 +811,8 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
"name": "python"
}
},
"nbformat": 4,
Expand Down
12 changes: 2 additions & 10 deletions examples/Asymmetric Line.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -322,21 +322,13 @@
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"display_name": "power-grid-model-workshop",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.3"
"version": "3.13.7"
}
},
"nbformat": 4,
Expand Down
16 changes: 1 addition & 15 deletions examples/Generic Branch Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1048,22 +1048,8 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.3"
"name": "python"
}
},
"nbformat": 4,
Expand Down
16 changes: 1 addition & 15 deletions examples/Make Test Dataset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -515,22 +515,8 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.3"
"name": "python"
}
},
"nbformat": 4,
Expand Down
52 changes: 16 additions & 36 deletions examples/Power Flow Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -912,9 +912,7 @@
"cell_type": "code",
"execution_count": 22,
"id": "4e25006f",
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -955,9 +953,7 @@
"cell_type": "code",
"execution_count": 23,
"id": "afccf7a2",
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -992,9 +988,7 @@
"cell_type": "code",
"execution_count": 24,
"id": "9af1be38",
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -1320,7 +1314,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Iteration failed to converge after 20 iterations! Max deviation: 3.54512e-16, error tolerance: 1e-20.\n",
"Iteration failed to converge after 20 iterations! Max deviation: 3.54512293063893e-16, error tolerance: 1e-20.\n",
Comment thread
figueroa1395 marked this conversation as resolved.
Outdated
"\n",
"Try validate_input_data() or validate_batch_data() to validate your data.\n",
"\n"
Expand Down Expand Up @@ -1384,7 +1378,7 @@
"\n",
"Failed scenarios: [3 7]\n",
"Succeeded scenarios: [0 1 2 4 5 6 8 9]\n",
"Error messages: ['The id cannot be found: 1000\\n', 'Sparse matrix error, possibly singular matrix!\\nIf you get this error from state estimation, it might mean the system is not fully observable, i.e. not enough measurements.\\nIt might also mean that you are running into a corner case where PGM cannot resolve yet.See https://github.com/PowerGridModel/power-grid-model/issues/864.']\n"
"Error messages: ['The id cannot be found: 1000\\n', 'Sparse matrix error, possibly singular matrix!\\nIf you get this error from state estimation, it might mean the system is not fully observable, i.e. not enough measurements.\\nIt might also mean that you are running into a corner case where PGM cannot resolve yet.\\nSee https://github.com/PowerGridModel/power-grid-model/issues/864.']\n"
]
}
],
Expand Down Expand Up @@ -1415,16 +1409,16 @@
"output_type": "stream",
"text": [
"Node data with invalid results\n",
"[[ 9.99401170e-001 9.92685785e-001 9.94521366e-001]\n",
" [ 9.99347687e-001 9.86226389e-001 9.89352855e-001]\n",
" [ 9.99288384e-001 9.79654011e-001 9.84095542e-001]\n",
" [-2.66881060e+116 2.33997016e-302 6.70346672e-198]\n",
" [ 9.99151380e-001 9.66149483e-001 9.73298790e-001]\n",
" [ 9.99073166e-001 9.59205860e-001 9.67750710e-001]\n",
" [ 9.98988099e-001 9.52126208e-001 9.62096474e-001]\n",
" [-2.44756775e+092 5.35663612e-256 1.91838796e-203]\n",
" [ 9.98796126e-001 9.37530046e-001 9.50447962e-001]\n",
" [ 9.98688504e-001 9.29997471e-001 9.44441670e-001]]\n",
"[[9.99401170e-001 9.92685785e-001 9.94521366e-001]\n",
" [9.99347687e-001 9.86226389e-001 9.89352855e-001]\n",
" [9.99288384e-001 9.79654011e-001 9.84095542e-001]\n",
" [0.00000000e+000 0.00000000e+000 0.00000000e+000]\n",
" [9.99151380e-001 9.66149483e-001 9.73298790e-001]\n",
" [9.99073166e-001 9.59205860e-001 9.67750710e-001]\n",
" [9.98988099e-001 9.52126208e-001 9.62096474e-001]\n",
" [0.00000000e+000 0.00000000e+000 4.24399163e-314]\n",
" [9.98796126e-001 9.37530046e-001 9.50447962e-001]\n",
" [9.98688504e-001 9.29997471e-001 9.44441670e-001]]\n",
"Node data with only valid results\n",
"[[0.99940117 0.99268579 0.99452137]\n",
" [0.99934769 0.98622639 0.98935286]\n",
Expand Down Expand Up @@ -1466,22 +1460,8 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.3"
"name": "python"
}
},
"nbformat": 4,
Expand Down
20 changes: 2 additions & 18 deletions examples/Serialization Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,7 @@
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -741,22 +739,8 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.3"
"name": "python"
}
},
"nbformat": 4,
Expand Down
59 changes: 7 additions & 52 deletions examples/Short Circuit Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@
"cell_type": "code",
"execution_count": 1,
"id": "ae11dc9a",
"metadata": {
"ExecuteTime": {
"end_time": "2023-08-03T08:29:18.753481900Z",
"start_time": "2023-08-03T08:29:17.530737800Z"
}
},
"metadata": {},
"outputs": [],
"source": [
"# some basic imports\n",
Expand Down Expand Up @@ -77,12 +72,7 @@
"cell_type": "code",
"execution_count": 2,
"id": "6f008736",
"metadata": {
"ExecuteTime": {
"end_time": "2023-08-03T08:29:18.763488Z",
"start_time": "2023-08-03T08:29:18.758492200Z"
}
},
"metadata": {},
"outputs": [],
"source": [
"# node\n",
Expand Down Expand Up @@ -168,12 +158,7 @@
"cell_type": "code",
"execution_count": 3,
"id": "40509eaf",
"metadata": {
"ExecuteTime": {
"end_time": "2023-08-03T08:29:18.811133300Z",
"start_time": "2023-08-03T08:29:18.764503700Z"
}
},
"metadata": {},
"outputs": [],
"source": [
"from power_grid_model.validation import assert_valid_input_data\n",
Expand All @@ -195,12 +180,7 @@
"cell_type": "code",
"execution_count": 4,
"id": "7ef134e9",
"metadata": {
"ExecuteTime": {
"end_time": "2023-08-03T08:29:18.811133300Z",
"start_time": "2023-08-03T08:29:18.804083800Z"
}
},
"metadata": {},
"outputs": [],
"source": [
"model = PowerGridModel(input_data)"
Expand All @@ -226,13 +206,7 @@
"cell_type": "code",
"execution_count": 5,
"id": "44c2de63",
"metadata": {
"ExecuteTime": {
"end_time": "2023-08-03T08:29:18.823792200Z",
"start_time": "2023-08-03T08:29:18.811133300Z"
},
"scrolled": true
},
"metadata": {},
"outputs": [],
"source": [
"output_data = model.calculate_short_circuit(\n",
Expand All @@ -256,12 +230,7 @@
"cell_type": "code",
"execution_count": 6,
"id": "a581a36e",
"metadata": {
"ExecuteTime": {
"end_time": "2023-08-03T08:29:18.895579800Z",
"start_time": "2023-08-03T08:29:18.827799800Z"
}
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -323,22 +292,8 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.3"
"name": "python"
}
},
"nbformat": 4,
Expand Down
Loading