Skip to content

Commit 632f13f

Browse files
committed
fix an issue spotted by CI, again
Signed-off-by: DONNOT Benjamin <benjamin.donnot@rte-france.com>
1 parent f35187d commit 632f13f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lightsim2grid/gridmodel/from_pypowsybl/_aux_handle_slack.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def handle_slack_one_el(df_gen, gen_slack_id):
3737
if gen_slack_id_int != gen_slack_id:
3838
raise RuntimeError("'gen_slack_id' should be either an int or a "
3939
"generator names")
40-
gen_slack_id_int = gen_slack_id_int
4140
gen_slack_weight = 1.
4241
if not df_gen.iloc[gen_slack_id_int]["connected"] or abs(gen_slack_weight) < 1e-5:
4342
return None, None
@@ -67,4 +66,3 @@ def handle_slack_iterable(df_gen, gen_slack_id):
6766
raise RuntimeError("when intializing the slack with an iterable, make sure to "
6867
"provide either a python list or a python dict.")
6968
return res_ids, res_ws
70-

0 commit comments

Comments
 (0)