Skip to content

Commit 0e0ee27

Browse files
updates
Signed-off-by: Sander-Timmerman <[email protected]>
1 parent fd413de commit 0e0ee27

File tree

2 files changed

+93
-92
lines changed

2 files changed

+93
-92
lines changed

state-estimation-assignment/State Estimation Assignment with Solutions.ipynb

Lines changed: 84 additions & 87 deletions
Large diffs are not rendered by default.

state-estimation-assignment/State Estimation Assignment.ipynb

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,15 @@
250250
"model = PowerGridModel(input_data)\n",
251251
"\n",
252252
"# Run the (iterative linear) state estimation\n",
253-
"se_output_data = model.calculate_state_estimation(\n",
254-
" symmetric=True, \n",
255-
" error_tolerance=1e-8, \n",
256-
" max_iterations=20, \n",
257-
" calculation_method=CalculationMethod.iterative_linear)"
253+
"try:\n",
254+
" se_output_data = model.calculate_state_estimation(\n",
255+
" symmetric=True,\n",
256+
" error_tolerance=1e-8,\n",
257+
" max_iterations=20,\n",
258+
" calculation_method=CalculationMethod.iterative_linear)\n",
259+
"except Exception as e:\n",
260+
" print(e)\n",
261+
" \n"
258262
]
259263
},
260264
{

0 commit comments

Comments
 (0)