mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-10-30 17:47:50 +00:00
fix: do not replace 0 with None
Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com> Change-Id: I02ee8f4f1148873fd19f1c312578bc1f15355667
This commit is contained in:
@@ -1356,7 +1356,7 @@ class Edfa(_Node):
|
|||||||
'type': type(self).__name__,
|
'type': type(self).__name__,
|
||||||
'type_variety': self.params.type_variety,
|
'type_variety': self.params.type_variety,
|
||||||
'operational': {
|
'operational': {
|
||||||
'gain_target': round(self.effective_gain, 6) if self.effective_gain else None,
|
'gain_target': round(self.effective_gain, 6) if self.effective_gain is not None else None,
|
||||||
'delta_p': self.delta_p,
|
'delta_p': self.delta_p,
|
||||||
'tilt_target': round(tilt_target, 5) if tilt_target is not None else None,
|
'tilt_target': round(tilt_target, 5) if tilt_target is not None else None,
|
||||||
# defined per lambda on the amp band
|
# defined per lambda on the amp band
|
||||||
|
|||||||
Reference in New Issue
Block a user