openoptics.OpticalTopo.port_offset#
- openoptics.OpticalTopo.port_offset(circuits: list, disable_last_ts=False)[source]#
Helper function to transform the circuits to reconfigure topology one port per time slice. New nb_time_slice = old nb_time_slice * nb_links
- Parameters:
circuits – List of circuits to transform
- Returns:
List of transformed circuits with port offset