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

@@ -572,5 +572,5 @@ class Edfa(Node):
def __call__(self, spectral_info):
carriers = tuple(self.propagate(spectral_info.pref, *spectral_info.carriers))
pref = self.update_pref(spectral_info.pref)
print('after edfa pi',pref.pi)
print('pch_i edfa output',pref.pi)
return spectral_info.update(carriers=carriers, pref=pref)