We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37b4f50 commit 61e951aCopy full SHA for 61e951a
1 file changed
gnpy/core/elements.py
@@ -474,6 +474,7 @@ def to_response_element_json(self):
474
{ 'metric-type': 'Total Loss', 'metric-unit': 'dB', 'metric-value': self.loss},
475
{ 'metric-type': 'Connection In', 'metric-unit': 'dB', 'metric-value': self.params.con_in},
476
{ 'metric-type': 'Connection Out + EOL', 'metric-unit': 'dB', 'metric-value': self.params.con_out},
477
+ { 'metric-type': 'Lumped Losses', 'metric-unit': 'dB', 'metric-value': sum(array([lumped['loss'] for lumped in self.params.lumped_losses]))},
478
{ 'metric-type': 'Power Out Per Channel', 'metric-unit': 'dBm', 'metric-value': self.pch_out_db}
479
]
480
0 commit comments