fix: do not assume 0 dB default value for tilt-target

Instead keep the None value, it user has not stated anything

Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
Change-Id: I45fcff92caabbfbe514fbe30deac60426b7eb16b
This commit is contained in:
EstherLerouzic
2024-10-25 10:50:26 +02:00
parent 33a289e22b
commit 4b50ee0c2d
4 changed files with 91 additions and 90 deletions

View File

@@ -988,7 +988,8 @@ class Edfa(_Node):
f' type_variety: {self.params.type_variety}',
f' effective gain(dB): {self.effective_gain:.2f}',
' (before att_in and before output VOA)',
f' tilt-target(dB) {self.tilt_target:.2f}',
f' tilt-target(dB) {self.tilt_target if self.tilt_target else 0:.2f}',
# avoids -0.00 value for tilt_target
f' noise figure (dB): {nf:.2f}',
f' (including att_in)',
f' pad att_in (dB): {self.att_in:.2f}',