Correct indentation due to linter report
using pylinter3
recommends having cut lines with same indent as starting [ or (
@@ -419,19 +419,19 @@ def propagate_and_optimize_mode(path, req, equipment):
baudrate_to_explore = sorted(baudrate_to_explore, reverse=True)
if baudrate_to_explore:
# at least 1 baudrate can be tested wrt spacing
+ for b in baudrate_to_explore:
modes_to_explore = [m for m in equipment['Transceiver'][req.tsp].mode
if m['baud_rate'] == b and float(m['min_spacing']) <= req.spacing]
modes_to_explore = sorted(modes_to_explore,
key=lambda x: x['bit_rate'], reverse=True)
- for b in baudrate_to_explore:
# print(modes_to_explore)
# step2: computes propagation for each baudrate: stop and select the first that passes
found_a_feasible_mode = False
- si = create_input_spectral_information(
- req.f_min, req.f_max, equipment['SI']['default'].roll_off,
- b, req.power, req.spacing)
# TODO: the case of roll of is not included: for now use SI one
# TODO: if the loop in mode optimization does not have a feasible path, then bugs
+ si = create_input_spectral_information(req.f_min, req.f_max,
+ equipment['SI']['default'].roll_off,
+ b, req.power, req.spacing)
for el in path:
si = el(si)
for m in modes_to_explore :
