mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-02 02:57:52 +00:00
fix: use ref power on transceiver to Roadm (or transceivers) links
The recent refactor removed a default pref in case of transceivers-OMS (amplified links starting with a transceiver). This resulted in a mismatch between input power during design (default 0 forced in the function) and the design ref power using SI power_dbm. This change ensures that the same power is used for the input power and for the design ref power, and avoid inconsistent gain computatiion. The code has been using the same power input (SI power_dbm) to define the power target out of a transceiver and the target out of amplifiers (at the input of fibers). This will be changed in a future patch. Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com> Change-Id: I610c8df19039bcf156a8ba77c79114b22913a538
This commit is contained in:
@@ -295,7 +295,9 @@ def set_egress_amplifier(network, this_node, equipment, pref_ch_db, pref_total_d
|
||||
prev_node = this_node
|
||||
node = oms
|
||||
if isinstance(this_node, elements.Transceiver):
|
||||
this_node_out_power = 0.0 # default value if this_node is a transceiver
|
||||
# for the time being use the same power for the target of roadms and for transceivers
|
||||
# TODO: This should be changed when introducing a power parameter dedicated to transceivers
|
||||
this_node_out_power = pref_ch_db
|
||||
if isinstance(this_node, elements.Roadm):
|
||||
# get target power out from ROADM for the reference carrier based on equalization settings
|
||||
this_node_out_power = this_node.get_per_degree_ref_power(degree=node.uid)
|
||||
|
||||
Reference in New Issue
Block a user