mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-02 19:18:02 +00:00
Fix (some) pep8 warnings
Change-Id: I3fd709b0b12617d534ce9edd5b287539ee036b38
This commit is contained in:
@@ -427,8 +427,7 @@ def xls_to_json_data(input_filename, filter_region=[]):
|
|||||||
'loss_coef': x.west_lineic,
|
'loss_coef': x.west_lineic,
|
||||||
'con_in': x.west_con_in,
|
'con_in': x.west_con_in,
|
||||||
'con_out': x.west_con_out}
|
'con_out': x.west_con_out}
|
||||||
}
|
} for x in links] +
|
||||||
for x in links] +
|
|
||||||
[{'uid': f'west edfa in {x.city}',
|
[{'uid': f'west edfa in {x.city}',
|
||||||
'metadata': {'location': {'city': x.city,
|
'metadata': {'location': {'city': x.city,
|
||||||
'region': x.region,
|
'region': x.region,
|
||||||
@@ -437,9 +436,7 @@ def xls_to_json_data(input_filename, filter_region=[]):
|
|||||||
'type': 'Edfa',
|
'type': 'Edfa',
|
||||||
'operational': {'gain_target': None,
|
'operational': {'gain_target': None,
|
||||||
'tilt_target': 0}
|
'tilt_target': 0}
|
||||||
}
|
} for x in nodes_by_city.values() if x.node_type.lower() == 'ila' and x.city not in eqpts_by_city] +
|
||||||
for x in nodes_by_city.values()
|
|
||||||
if x.node_type.lower() == 'ila' and x.city not in eqpts_by_city] +
|
|
||||||
[{'uid': f'east edfa in {x.city}',
|
[{'uid': f'east edfa in {x.city}',
|
||||||
'metadata': {'location': {'city': x.city,
|
'metadata': {'location': {'city': x.city,
|
||||||
'region': x.region,
|
'region': x.region,
|
||||||
@@ -448,9 +445,7 @@ def xls_to_json_data(input_filename, filter_region=[]):
|
|||||||
'type': 'Edfa',
|
'type': 'Edfa',
|
||||||
'operational': {'gain_target': None,
|
'operational': {'gain_target': None,
|
||||||
'tilt_target': 0}
|
'tilt_target': 0}
|
||||||
}
|
} for x in nodes_by_city.values() if x.node_type.lower() == 'ila' and x.city not in eqpts_by_city] +
|
||||||
for x in nodes_by_city.values()
|
|
||||||
if x.node_type.lower() == 'ila' and x.city not in eqpts_by_city] +
|
|
||||||
[create_east_eqpt_element(e) for e in eqpts] +
|
[create_east_eqpt_element(e) for e in eqpts] +
|
||||||
[create_west_eqpt_element(e) for e in eqpts],
|
[create_west_eqpt_element(e) for e in eqpts],
|
||||||
'connections':
|
'connections':
|
||||||
|
|||||||
Reference in New Issue
Block a user