So when exporting, hydra-pywr needs to check if the source node is one of riversplit, riversplitwitgauge, multisplitlink.. If it is, then iterate through the list of slot names on that node, and if a match is found to the target node name, then add the slot to the link. Otherwise, ignore.
Pseudo Code:
if from_node.type in [riversplit, riversplitwitgauge, multisplitlink]:
for split_name in from_node.slot_names:
if split_name == to_node.name:
#add the slot to edge
Currently there is no support for split links such as riversplit, riversplitwithgauge, and multisplitlink.
These nodes are specified a
which match up with names specified on the links like so:
In Hydra, we should formalise the names of the slotnames to be the
to_node.name
, like so:which match up with names specified on the links like so:
So when exporting, hydra-pywr needs to check if the
source node
is one ofriversplit, riversplitwitgauge, multisplitlink.
. If it is, then iterate through the list of slot names on that node, and if a match is found to thetarget node
name, then add the slot to the link. Otherwise, ignore.Pseudo Code: