@@ -55,7 +55,6 @@ def signal_handler(sig, frame):
5555 # Logging to default directory
5656 default_dir .mkdir (parents = True , exist_ok = True )
5757 myOmniscan450 = Omniscan450 (logging = True , log_directory = default_dir )
58- print (f"Logging to new file in: { default_dir } " )
5958 new_log = True
6059 elif isinstance (args .log , str ):
6160 log_path = Path (args .log ).expanduser ()
@@ -78,7 +77,6 @@ def signal_handler(sig, frame):
7877 elif log_path .is_dir () or log_path .suffix == "" :
7978 # Path is directory, logging to that directory
8079 myOmniscan450 = Omniscan450 (logging = True , log_directory = log_path )
81- print (f"Logging to new file: { myOmniscan450 .current_log } " )
8280 new_log = True
8381
8482 else :
@@ -119,15 +117,12 @@ def signal_handler(sig, frame):
119117 if data == None :
120118 break # EOF or bad packet
121119
120+ print (f"ID: { data .message_id } \t Name: { data .name } " )
122121 if data .message_id == definitions .OMNISCAN450_OS_MONO_PROFILE :
123- # print(data)
122+ # # print(data)
124123
125124 # Printing the same results as if directly connected to the Omniscan
126125 scaled_result = Omniscan450 .scale_power (data )
127- # for i in range(len(scaled_result)):
128- # print(f"{i+1}: Raw: {data.pwr_results[i]}\tScaled: {scaled_result[i]}dB")
129- # print(f"Min power: {data.min_pwr_db} dB")
130- # print(f"Max power: {data.max_pwr_db} dB")
131126 print (f"Average power: { sum (scaled_result ) / len (scaled_result )} " )
132127
133128# Connected to physical omniscan
0 commit comments