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:
Jean-Luc Auge
2018-07-04 14:33:02 +02:00
parent b810cf84c2
commit c86ea206d9
3 changed files with 11 additions and 4 deletions

View File

@@ -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)]