Skip to content

Commit

Permalink
fix: offset was not correctly taken into account on reversed path
Browse files Browse the repository at this point in the history
TODO: write a test!

Signed-off-by: EstherLerouzic <[email protected]>
Change-Id: I7ac909bb9b8c9700c3841f133245f17f49ba3467
  • Loading branch information
EstherLerouzic committed Dec 6, 2024
1 parent fce9d1d commit fbe3879
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnpy/topology/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,7 @@ def compute_path_with_disjunction(network, equipment, pathreqlist, pathlist, red
pathreq.tx_osnr = mode['tx_osnr']
pathreq.bit_rate = mode['bit_rate']
pathreq.penalties = mode['penalties']
pathreq.offset_db = mode['equalization_offset_db']
# other blocking reason should not appear at this point
except AttributeError:
pathreq.baud_rate = mode['baud_rate']
Expand All @@ -1187,6 +1188,7 @@ def compute_path_with_disjunction(network, equipment, pathreqlist, pathlist, red
pathreq.tx_osnr = mode['tx_osnr']
pathreq.bit_rate = mode['bit_rate']
pathreq.penalties = mode['penalties']
pathreq.offset_db = mode['equalization_offset_db']

# reversed path is needed for correct spectrum assignment
reversed_path = find_reversed_path(pathlist[i])
Expand Down

0 comments on commit fbe3879

Please sign in to comment.