mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-02 02:57:52 +00:00
Fix to_json()-function of Multiband_amplifier when gain is missing
Signed-off-by: Florian FRANK <florian1.frank@orange.com> Change-Id: I2a0c249c7e3278e282c2c45ea8be52073f014de3
This commit is contained in:
committed by
EstherLerouzic
parent
f30515ba9d
commit
6612a46a9e
@@ -1776,7 +1776,7 @@ class Multiband_amplifier(_Node):
|
||||
'amplifiers': [{
|
||||
'type_variety': amp.params.type_variety,
|
||||
'operational': {
|
||||
'gain_target': round(amp.effective_gain, 6),
|
||||
'gain_target': round(amp.effective_gain, 6) if amp.effective_gain else None,
|
||||
'delta_p': amp.delta_p,
|
||||
'tilt_target': amp.tilt_target,
|
||||
'out_voa': amp.out_voa
|
||||
|
||||
Reference in New Issue
Block a user