mirror of
				https://github.com/Telecominfraproject/oopt-gnpy.git
				synced 2025-10-30 01:32:21 +00:00 
			
		
		
		
	Only print out "pretty summary" when not doing the power sweep
This commit is contained in:
		| @@ -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) | ||||
|             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]) | ||||
|         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}') | ||||
|  | ||||
|         #print(f'\n !!!!!!!!!!!!!!!!!     TEST POINT         !!!!!!!!!!!!!!!!!!!!!') | ||||
|         #print(f'carriers ase output of {path[1]} =\n {list(path[1].carriers("out", "nli"))}') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jan Kundrát
					Jan Kundrát