Only print out "pretty summary" when not doing the power sweep
@@ -157,13 +157,13 @@ def main(network, equipment, source, destination, sim_params, req=None):
if len(power_range) == 1:
for elem in path:
print(elem)
- else:
- print(path[-1])
if power_mode:
print(f'\nTransmission result for input power = {lin2db(req.power*1e3):.2f} dBm:')
else:
print(f'\nTransmission results:')
print(f' Final SNR total (0.1 nm): {ansi_escapes.cyan}{mean(destination.snr_01nm):.02f} dB{ansi_escapes.reset}')
+ else:
+ print(path[-1])
#print(f'\n !!!!!!!!!!!!!!!!! TEST POINT !!!!!!!!!!!!!!!!!!!!!')
#print(f'carriers ase output of {path[1]} =\n {list(path[1].carriers("out", "nli"))}')
