Automatic design Delta power / span

* automatic design (when amplifiers are missing from network topology
input) finds the optimum power difference between spans
* The range of this optimum power difference is defined in
eqpt_config[Spans][delta_power_range_db] = [min, max, step]

Signed-off-by: Jean-Luc Auge <jeanluc.auge@orange.com>
This commit is contained in:
Jean-Luc Auge
2018-08-02 12:30:05 +02:00
parent a783e165dd
commit d1c7489768
6 changed files with 78 additions and 32 deletions

View File

@@ -58,7 +58,7 @@ def main(network, equipment, source, destination, req = None):
build_network(network, equipment=equipment)
path = compute_constrained_path(network, req)
if power_mode:
set_edfa_dp(network, path)
set_edfa_dp(network, path, equipment)
spans = [s.length for s in path if isinstance(s, Fiber)]
print(f'\nThere are {len(spans)} fiber spans over {sum(spans):.0f}m between {source.uid} and {destination.uid}')