mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-01 18:47:48 +00:00
Add tx_osnr in spectral information
This change enables to use a different tx_osnr per carrier. If tx_osnr is defined via spectrum then use it to define a tx_osnr per carrier in si else use the tx_osnr of request to set tx_osnr of si. Then, the propagate function for requests is changed to update OSNR with tx_OSNR per carrier defined in si. TODO: The tx_osnr defined in spectrum is not yet taken into account for the propagate_and_optimize function, because the loop that optimizes the choice for the mode only loops on baudrate. Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com> Change-Id: I0fcdf559d4f1f8f0047faa257076084ec7adcc77
This commit is contained in:
@@ -45,7 +45,8 @@ def propagation(input_power, con_in, con_out, dest):
|
||||
p = input_power
|
||||
p = db2lin(p) * 1e-3
|
||||
spacing = 50e9 # THz
|
||||
si = create_input_spectral_information(191.3e12, 191.3e12 + 79 * spacing, 0.15, 32e9, p, spacing)
|
||||
si = create_input_spectral_information(f_min=191.3e12, f_max=191.3e12 + 79 * spacing, roll_off=0.15,
|
||||
baud_rate=32e9, power=p, spacing=spacing, tx_osnr=None)
|
||||
source = next(transceivers[uid] for uid in transceivers if uid == 'trx A')
|
||||
sink = next(transceivers[uid] for uid in transceivers if uid == dest)
|
||||
path = dijkstra_path(network, source, sink)
|
||||
|
||||
Reference in New Issue
Block a user