mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-10-30 01:32:21 +00:00
change variable n to nel to conform to '[a-z_][a-z0-9_]{2,30}$' pattern
from codacy report Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
This commit is contained in:
@@ -126,20 +126,20 @@ class Result_element(Element):
|
||||
else:
|
||||
index = 0
|
||||
pro_list = []
|
||||
for n in self.computed_path:
|
||||
for nel in self.computed_path:
|
||||
temp = {
|
||||
'path-route-object': {
|
||||
'index': index,
|
||||
'num-unnum-hop': {
|
||||
'node-id': n.uid,
|
||||
'link-tp-id': n.uid,
|
||||
'node-id': nel.uid,
|
||||
'link-tp-id': nel.uid,
|
||||
# TODO change index in order to insert transponder attribute
|
||||
}
|
||||
}
|
||||
}
|
||||
pro_list.append(temp)
|
||||
index += 1
|
||||
if isinstance(n, Transceiver):
|
||||
if isinstance(nel, Transceiver):
|
||||
temp = {
|
||||
'path-route-object': {
|
||||
'index': index,
|
||||
|
||||
Reference in New Issue
Block a user