Skip to content

Commit 954e498

Browse files
feat: setup three winding trafo visualisation
Signed-off-by: jaapschoutenalliander <[email protected]>
1 parent f54596d commit 954e498

File tree

1 file changed

+1
-0
lines changed
  • src/power_grid_model_ds/_core/visualizer

1 file changed

+1
-0
lines changed

src/power_grid_model_ds/_core/visualizer/parsers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def parse_branch3_array(branches: Branch3Array, group: Literal["transformer"]) -
4545
cyto_elements = {"data": _array_to_dict(branch_, columns)}
4646
cyto_elements["data"].update(
4747
{
48+
# IDs need to be unique, so we combine the branch ID with the from and to nodes
4849
"id": str(branch.id.item()) + f"_{branch_.from_node.item()}_{branch_.to_node.item()}",
4950
"source": str(branch_.from_node.item()),
5051
"target": str(branch_.to_node.item()),

0 commit comments

Comments
 (0)