mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-01 18:47:48 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user