1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-06 10:13:04 +00:00

osnma_log_viewer.py: print number of verified tags found in log file

This commit is contained in:
Carles Fernandez
2025-09-12 22:55:45 +02:00
parent 8155ee3ef2
commit 0a32ec6494

View File

@@ -333,11 +333,15 @@ def main():
print(f"Supported extensions: {', '.join(valid_extensions)}") print(f"Supported extensions: {', '.join(valid_extensions)}")
sys.exit(1) sys.exit(1)
print(f"Reading file {log_file} ...")
df = parse_osnma_log(log_file) df = parse_osnma_log(log_file)
if df.empty: if df.empty:
print("No OSNMA authentication records found in the log file.") print("No OSNMA authentication records found in the log file.")
sys.exit(0) sys.exit(0)
successful_total_tags = df.shape[0]
print(f"Found {successful_total_tags} validated OSNMA tags.")
# Read time limits # Read time limits
start_datetime = None start_datetime = None
end_datetime = None end_datetime = None
@@ -391,6 +395,10 @@ def main():
) )
sys.exit(0) sys.exit(0)
tags_in_period = df.shape[0]
if successful_total_tags != tags_in_period:
print(f"A total of {tags_in_period} tags will be plotted for the specified time period.")
print( print(
"Generating Galileo's navigation message authentication timeline plot ..." "Generating Galileo's navigation message authentication timeline plot ..."
) )