mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-10-30 01:32:21 +00:00
Merge changes I7596efae,I3633a59d
* changes: Remove unused property Fiber.fiber_loss Remove unused property
This commit is contained in:
@@ -52,10 +52,6 @@ class _Node:
|
||||
if type_variety:
|
||||
self.type_variety = type_variety
|
||||
|
||||
@property
|
||||
def coords(self):
|
||||
return self.lng, self.lat
|
||||
|
||||
@property
|
||||
def location(self):
|
||||
return self.metadata['location']
|
||||
@@ -352,11 +348,6 @@ class Fiber(_Node):
|
||||
f' (conn loss out includes EOL margin defined in eqpt_config.json)',
|
||||
f' pch out (dBm): {self.pch_out_db!r}'])
|
||||
|
||||
@property
|
||||
def fiber_loss(self):
|
||||
"""Fiber loss in dB, not including padding attenuator"""
|
||||
return self.params.loss_coef * self.params.length + self.params.con_in + self.params.con_out
|
||||
|
||||
@property
|
||||
def loss(self):
|
||||
"""total loss including padding att_in: useful for polymorphism with roadm loss"""
|
||||
|
||||
Reference in New Issue
Block a user