mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-02 02:57:52 +00:00
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:
@@ -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}',
|
||||
|
||||
Reference in New Issue
Block a user