bug fix in mixed auto/imported design with output voa
non zero voa values were transferd to the following node
@@ -295,8 +295,7 @@ def set_egress_amplifier(network, roadm, equipment, pref_total_db):
#go through all nodes in the OMS (loop until next Roadm instance)
if isinstance(node, Edfa):
node_loss = span_loss(network, prev_node)
- if node.out_voa:
- voa = node.out_voa
+ voa = node.out_voa if node.out_voa else 0
if node.delta_p is None:
dp = target_power(network, next_node, equipment)
else:
@@ -310,6 +309,7 @@ def set_egress_amplifier(network, roadm, equipment, pref_total_db):
#print(node.delta_p, dp, gain_target)
power_target = pref_total_db + dp
+
if node.params.type_variety == '' :
raman_allowed = False
if isinstance(prev_node, Fiber):
