From 9a84e2943390f130f7f3265487efb288556bd67d Mon Sep 17 00:00:00 2001 From: EstherLerouzic Date: Fri, 12 Apr 2024 09:34:36 +0200 Subject: [PATCH] fix: remove freq2wavelength that is already defined Signed-off-by: EstherLerouzic Change-Id: I8ef480460e689bfcb33116cd393ad92ed0e03338 --- gnpy/core/utils.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/gnpy/core/utils.py b/gnpy/core/utils.py index 5fc7b9d15..51dcadd70 100644 --- a/gnpy/core/utils.py +++ b/gnpy/core/utils.py @@ -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))