Merge changes I7596efae,I3633a59d

* changes:
  Remove unused property Fiber.fiber_loss
  Remove unused property
This commit is contained in:
Jan Kundrát
2021-06-03 21:49:58 +00:00
committed by Gerrit Code Review

View File

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