Skip to content

Commit

Permalink
fix: remove freq2wavelength that is already defined
Browse files Browse the repository at this point in the history
Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
Change-Id: I8ef480460e689bfcb33116cd393ad92ed0e03338
  • Loading branch information
EstherLerouzic committed Oct 8, 2024
1 parent 143f631 commit 9a84e29
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions gnpy/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,17 +213,6 @@ def round2float(number, step):
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))
Expand Down

0 comments on commit 9a84e29

Please sign in to comment.