piel.models.logic.photonic#
Submodules#
Functions#
|
This function returns a list of the switch positions in the network, the corresponding instance, and the 2D position in the network. |
Package Contents#
- compose_switch_position_list(network: numpy.array, gap_elements: list = None, cross_elements: list = None, *args, **kwargs)[source]#
This function returns a list of the switch positions in the network, the corresponding instance, and the 2D position in the network.
- Parameters:
network (np.array) – The network array.
gap_elements (list, optional) – The gap elements in the network. Defaults to None.
cross_elements (list, optional) – The cross elements in the network. Defaults to None.
- Returns:
A list of tuples of the form (switch_instance, (row, col)).
- Return type:
switch_position_list (list)