mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-03 03:28:04 +00:00
bug fix CORONET_GLOBAL_Topology example
bugs from the last refactor merge - fix #1: update fiber length after split - fix #2: add egress amp after fiber split Signed-off-by: Jean-Luc Auge <jeanluc.auge@orange.com>
This commit is contained in:
@@ -51,7 +51,7 @@ def main(network, equipment, source, sink):
|
||||
build_network(network, equipment=equipment)
|
||||
path = dijkstra_path(network, source, sink)
|
||||
gain_mode = False
|
||||
if gain_mode:
|
||||
if not gain_mode:
|
||||
path_amps = [amp for amp in path if isinstance(amp, Edfa)]
|
||||
set_edfa_dp(network, path_amps)
|
||||
spans = [s.length for s in path if isinstance(s, Fiber)]
|
||||
|
||||
Reference in New Issue
Block a user