Add a user defined initial spectrum in propagation functions

A new function is added to use requests specs based on transceivers
and on user definition of mixed rates and powers.

Propagation functions are changed so that, if the user defines a
specific distribution, then they use it else they use as before,
all identical channels based on the initial request. In this case,
as before this change, we assume full load, with same channel for
the spectral info and not the resulting mixt of channels after
routing.

Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
Change-Id: Icf56396837b77009e98accd27fcebd2dded6d112
This commit is contained in:
EstherLerouzic
2021-08-05 15:07:35 +02:00
parent 5c32805073
commit 12e58e3dbf
3 changed files with 47 additions and 8 deletions

View File

@@ -226,7 +226,6 @@ def transmission_main_example(args=None):
power_range = list(linspace(p_start, p_stop, p_num))
except TypeError:
print('invalid power range definition in eqpt_config, should be power_range_db: [lower, upper, step]')
for dp_db in power_range:
req.power = db2lin(pref_ch_db + dp_db) * 1e-3
if power_mode: