mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-01 18:47:48 +00:00
code speed improvement (-30% computation time)
remove path propagation for each mode path propogation is only done for each baud rate Signed-off-by: Jean-Luc Auge <jeanluc.auge@orange.com>
This commit is contained in:
@@ -212,7 +212,7 @@ def compute_path_with_disjunction(network, equipment, pathreqlist, pathlist):
|
||||
logger.warning(msg)
|
||||
total_path = []
|
||||
else:
|
||||
total_path,mode = propagate_and_optimize_mode(total_path,pathreq,equipment, show=False)
|
||||
total_path,mode = propagate_and_optimize_mode(total_path,pathreq,equipment)
|
||||
# if no baudrate satisfies spacing, no mode is returned and an empty path is returned
|
||||
# a warning is shown in the propagate_and_optimize_mode
|
||||
if mode is not None :
|
||||
|
||||
Reference in New Issue
Block a user