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