mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-10-29 17:22:42 +00:00
fix: remove freq2wavelength that is already defined
Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com> Change-Id: I8ef480460e689bfcb33116cd393ad92ed0e03338
This commit is contained in:
committed by
Esther Le Rouzic
parent
143f63170e
commit
9a84e29433
@@ -213,17 +213,6 @@ wavelength2freq = constants.lambda2nu
|
||||
freq2wavelength = constants.nu2lambda
|
||||
|
||||
|
||||
def freq2wavelength(value):
|
||||
"""Converts frequency units to wavelength units.
|
||||
|
||||
>>> round(freq2wavelength(191.35e12) * 1e9, 3)
|
||||
1566.723
|
||||
>>> round(freq2wavelength(196.1e12) * 1e9, 3)
|
||||
1528.773
|
||||
"""
|
||||
return constants.c / value
|
||||
|
||||
|
||||
def snr_sum(snr, bw, snr_added, bw_added=12.5e9):
|
||||
snr_added = snr_added - lin2db(bw / bw_added)
|
||||
snr = -lin2db(db2lin(-snr) + db2lin(-snr_added))
|
||||
|
||||
Reference in New Issue
Block a user