Skip to content

Commit 68939f1

Browse files
committed
bugfix: AE elements handling without given description
1 parent 308ef53 commit 68939f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rao/crac/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def process_cnecs(self):
227227
cnec = models.FlowCnec(
228228
id=f"{ae['IdentifiedObject.mRID']}",
229229
name=ae['IdentifiedObject.name'],
230-
description=ae['IdentifiedObject.description'],
230+
description=ae['IdentifiedObject.description'] or "",
231231
networkElementId=ae['AssessedElement.ConductingEquipment'],
232232
operator=ae['AssessedElement.AssessedSystemOperator'],
233233
thresholds=[models.Threshold()],

rao/parameters/loadflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
read_slack_bus=False,
8484
write_slack_bus=True,
8585
distributed_slack=True,
86-
balance_type=pypowsybl.loadflow.BalanceType.PROPORTIONAL_TO_GENERATION_REMAINING_MARGIN,
86+
balance_type=pypowsybl.loadflow.BalanceType.PROPORTIONAL_TO_GENERATION_P_MAX,
8787
dc_use_transformer_ratio=True,
8888
countries_to_balance=[],
8989
connected_component_mode=pypowsybl.loadflow.ConnectedComponentMode.ALL,

0 commit comments

Comments
 (0)