fix: do not replace 0 with None

Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
Change-Id: I02ee8f4f1148873fd19f1c312578bc1f15355667
This commit is contained in:
EstherLerouzic
2024-10-25 13:53:10 +02:00
parent 6f9897fe40
commit f30515ba9d

View File

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