Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] - columnar data examples #785

Merged
merged 19 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
22 changes: 11 additions & 11 deletions docs/examples/Power Flow Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
"output_type": "stream",
"text": [
"List of component types in result dataset\n",
"['node']\n",
"[<ComponentType.node: 'node'>]\n",
"------node result------\n",
" id energized u_pu u u_angle p q\n",
"0 1 1 0.998988 10489.375043 -0.003039 3.121451e+07 6.991358e+06\n",
Expand Down Expand Up @@ -1139,16 +1139,16 @@
"output_type": "stream",
"text": [
"Node data with invalid results\n",
"[[0.99940117 0.99268579 0.99452137]\n",
" [0.99934769 0.98622639 0.98935286]\n",
" [0.99928838 0.97965401 0.98409554]\n",
" [0. 0. 0. ]\n",
" [0.99915138 0.96614948 0.97329879]\n",
" [0.99907317 0.95920586 0.96775071]\n",
" [0.9989881 0.95212621 0.96209647]\n",
" [0. 0. 0. ]\n",
" [0.99879613 0.93753005 0.95044796]\n",
" [0.9986885 0.92999747 0.94444167]]\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",
" [ 1.05085968e+056 -4.32115156e-239 -5.52267234e+127]\n",
mgovers marked this conversation as resolved.
Show resolved Hide resolved
" [ 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",
" [-8.67933810e+092 -1.76263646e-197 1.52450807e-227]\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
44 changes: 22 additions & 22 deletions docs/examples/Serialization Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"components: dict_keys(['node', 'line', 'source', 'sym_load'])\n"
"components: dict_keys([<ComponentType.node: 'node'>, <ComponentType.line: 'line'>, <ComponentType.source: 'source'>, <ComponentType.sym_load: 'sym_load'>])\n"
]
},
{
Expand Down Expand Up @@ -326,9 +326,9 @@
" {\"id\": 5, \"energized\": 1, \"loading\": 0.1977047433812966, \"p_from\": 1242625.764367574, \"q_from\": -1613928.536947772, \"i_from\": 108.7376088597131, \"s_from\": 2036880.976553238, \"p_to\": -1019999.999999999, \"q_to\": -219999.9999999689, \"i_to\": 55.73199226981006, \"s_to\": 1043455.796859639}\n",
" ],\n",
" \"source\": [\n",
" {\"id\": 15, \"energized\": 1, \"p\": -7838134.060668075, \"q\": -105359359.482604, \"i\": 5640.069564151436, \"s\": 105650513.3737531, \"pf\": -0.07418926619825886},\n",
" {\"id\": 16, \"energized\": 1, \"p\": 10248883.05839188, \"q\": 102488830.5811948, \"i\": 5498.573991718331, \"s\": 102999999.989541, \"pf\": 0.09950371902361739},\n",
" {\"id\": 17, \"energized\": 1, \"p\": -0.001808079734064212, \"q\": -0.01040918620434095, \"i\": 5.640069564151435e-07, \"s\": 0.01056505133737531, \"pf\": -0.1711378086415808}\n",
" {\"id\": 15, \"energized\": 1, \"p\": -7836685.751732428, \"q\": -105348495.343833, \"i\": 5639.485452974508, \"s\": 105639571.7275539, \"pf\": -0.07418324046166491},\n",
" {\"id\": 16, \"energized\": 1, \"p\": 10248883.05839198, \"q\": 102488830.5811954, \"i\": 5498.573991718361, \"s\": 102999999.9895415, \"pf\": 0.09950371902361781},\n",
" {\"id\": 17, \"energized\": 1, \"p\": -0.001807829591278542, \"q\": -0.0104081191056169, \"i\": 5.639485452974507e-07, \"s\": 0.01056395717275539, \"pf\": -0.1711318553942043}\n",
" ],\n",
mgovers marked this conversation as resolved.
Show resolved Hide resolved
" \"sym_load\": [\n",
" {\"id\": 7, \"energized\": 1, \"p\": 1010000, \"q\": 210000, \"i\": 55.07135393955915, \"s\": 1031600.697944704, \"pf\": 0.979060989404389},\n",
Expand Down Expand Up @@ -367,7 +367,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{\"version\":\"1.0\",\"type\":\"sym_output\",\"is_batch\":false,\"attributes\":{\"node\":[\"id\",\"energized\",\"u_pu\",\"u\",\"u_angle\",\"p\",\"q\"],\"line\":[\"id\",\"energized\",\"loading\",\"p_from\",\"q_from\",\"i_from\",\"s_from\",\"p_to\",\"q_to\",\"i_to\",\"s_to\"],\"source\":[\"id\",\"energized\",\"p\",\"q\",\"i\",\"s\",\"pf\"],\"sym_load\":[\"id\",\"energized\",\"p\",\"q\",\"i\",\"s\",\"pf\"]},\"data\":{\"node\":[[1,1,1.030000000001025,10815.00000001077,-2.530316910142707e-14,2408997.839438867,-2863495.364674167],[2,1,1.029996969815606,10814.96818306386,-0.004397999804754745,-1009999.99999997,-210000.0000000655],[3,1,1.029483905569345,10809.58100847812,-0.006839956175380238,-1019999.999999999,-219999.9999999689]],\"line\":[[4,1,0.3995319091937107,2408997.839438867,-2863495.364674167,199.7659545968554,3742041.7279784,-2252625.764367544,1403928.536947823,141.6984332838951,2654305.591138465],[5,1,0.1977047433812966,1242625.764367574,-1613928.536947772,108.7376088597131,2036880.976553238,-1019999.999999999,-219999.9999999689,55.73199226981006,1043455.796859639]],\"source\":[[15,1,-7838134.060668075,-105359359.482604,5640.069564151436,105650513.3737531,-0.07418926619825886],[16,1,10248883.05839188,102488830.5811948,5498.573991718331,102999999.989541,0.09950371902361739],[17,1,-0.001808079734064212,-0.01040918620434095,5.640069564151435e-07,0.01056505133737531,-0.1711378086415808]],\"sym_load\":[[7,1,1010000,210000,55.07135393955915,1031600.697944704,0.979060989404389],[8,1,1020000,220000,55.73199226981046,1043455.796859647,0.9775210440823288]]}}\n"
"{\"version\":\"1.0\",\"type\":\"sym_output\",\"is_batch\":false,\"attributes\":{\"node\":[\"id\",\"energized\",\"u_pu\",\"u\",\"u_angle\",\"p\",\"q\"],\"line\":[\"id\",\"energized\",\"loading\",\"p_from\",\"q_from\",\"i_from\",\"s_from\",\"p_to\",\"q_to\",\"i_to\",\"s_to\"],\"source\":[\"id\",\"energized\",\"p\",\"q\",\"i\",\"s\",\"pf\"],\"sym_load\":[\"id\",\"energized\",\"p\",\"q\",\"i\",\"s\",\"pf\"]},\"data\":{\"node\":[[1,1,1.030000000001025,10815.00000001077,-2.530316910142707e-14,2408997.839438867,-2863495.364674167],[2,1,1.029996969815606,10814.96818306386,-0.004397999804754745,-1009999.99999997,-210000.0000000655],[3,1,1.029483905569345,10809.58100847812,-0.006839956175380238,-1019999.999999999,-219999.9999999689]],\"line\":[[4,1,0.3995319091937107,2408997.839438867,-2863495.364674167,199.7659545968554,3742041.7279784,-2252625.764367544,1403928.536947823,141.6984332838951,2654305.591138465],[5,1,0.1977047433812966,1242625.764367574,-1613928.536947772,108.7376088597131,2036880.976553238,-1019999.999999999,-219999.9999999689,55.73199226981006,1043455.796859639]],\"source\":[[15,1,-7836685.751732428,-105348495.343833,5639.485452974508,105639571.7275539,-0.07418324046166491],[16,1,10248883.05839198,102488830.5811954,5498.573991718361,102999999.9895415,0.09950371902361781],[17,1,-0.001807829591278542,-0.0104081191056169,5.639485452974507e-07,0.01056395717275539,-0.1711318553942043]],\"sym_load\":[[7,1,1010000,210000,55.07135393955915,1031600.697944704,0.979060989404389],[8,1,1020000,220000,55.73199226981046,1043455.796859647,0.9775210440823288]]}}\n"
mgovers marked this conversation as resolved.
Show resolved Hide resolved
]
}
],
Expand Down Expand Up @@ -452,25 +452,25 @@
" -219999.9999999689]],\n",
" 'source': [[15,\n",
" 1,\n",
" -7838134.060668075,\n",
" -105359359.482604,\n",
" 5640.069564151436,\n",
" 105650513.3737531,\n",
" -0.07418926619825886],\n",
" -7836685.751732428,\n",
" -105348495.343833,\n",
" 5639.485452974508,\n",
" 105639571.7275539,\n",
" -0.07418324046166491],\n",
mgovers marked this conversation as resolved.
Show resolved Hide resolved
" [16,\n",
" 1,\n",
" 10248883.05839188,\n",
" 102488830.5811948,\n",
" 5498.573991718331,\n",
" 102999999.989541,\n",
" 0.09950371902361739],\n",
" 10248883.05839198,\n",
" 102488830.5811954,\n",
" 5498.573991718361,\n",
" 102999999.9895415,\n",
" 0.0995037190236178],\n",
" [17,\n",
" 1,\n",
" -0.001808079734064212,\n",
" -0.01040918620434095,\n",
" 5.640069564151435e-07,\n",
" 0.01056505133737531,\n",
" -0.1711378086415808]],\n",
" -0.001807829591278542,\n",
" -0.0104081191056169,\n",
" 5.639485452974507e-07,\n",
" 0.01056395717275539,\n",
" -0.1711318553942043]],\n",
" 'sym_load': [[7,\n",
" 1,\n",
" 1010000,\n",
Expand Down Expand Up @@ -595,7 +595,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "venv",
"language": "python",
"name": "python3"
},
Expand All @@ -609,7 +609,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
"version": "3.13.0"
}
},
"nbformat": 4,
Expand Down
9 changes: 2 additions & 7 deletions docs/examples/Short Circuit Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "venv",
"language": "python",
"name": "python3"
},
Expand All @@ -341,12 +341,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
},
"vscode": {
"interpreter": {
"hash": "f2534ebf7a1a13ecc51c3a04ce741b49cf1feb97b5ca55170ed7b2036b4058c0"
}
"version": "3.13.0"
}
},
"nbformat": 4,
Expand Down
26 changes: 13 additions & 13 deletions docs/examples/State Estimation Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 14,
"id": "ae11dc9a",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -71,7 +71,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 15,
"id": "6f008736",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -160,7 +160,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 16,
"id": "fab31f58",
"metadata": {},
"outputs": [],
Expand All @@ -184,7 +184,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 17,
"id": "7ef134e9",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -212,7 +212,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 18,
"id": "44c2de63",
"metadata": {},
"outputs": [],
Expand All @@ -235,7 +235,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 19,
"id": "a581a36e",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -535,7 +535,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 20,
"id": "40e6d425",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -639,7 +639,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 21,
"id": "699e31af",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -806,7 +806,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 22,
"id": "b3e3fdc9",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -927,7 +927,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 23,
"id": "445726f3",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -993,7 +993,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 24,
"id": "303af910",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -1037,7 +1037,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 25,
"id": "70f761a3",
"metadata": {},
"outputs": [],
Expand All @@ -1060,7 +1060,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 26,
"id": "4d9d5de2",
"metadata": {},
"outputs": [
Expand Down
Loading
Loading