ZH: rename clock repair-all mode to repair-full

This commit is contained in:
Eric-Teunis de Boone 2023-05-01 17:43:20 +02:00
parent 278d029f8e
commit 7eaa97d0cb
5 changed files with 22 additions and 15 deletions

View file

@ -79,7 +79,7 @@ def save_overlapping_traces_figure(test_location, ev, N_plot = 30, wx=200, title
return fig
if __name__ == "__main__":
valid_cases = ['no_offset', 'repair_none', 'repair_phases', 'repair_all']
valid_cases = ['no_offset', 'repair_none', 'repair_phases', 'repair_full']
import sys
import os
@ -121,7 +121,6 @@ if __name__ == "__main__":
####
fname_dir = args.data_dir
antennas_fname = path.join(fname_dir, beacon.antennas_fname)
pickle_fname = path.join(fname_dir, 'res.pkl')
tx_fname = path.join(fname_dir, beacon.tx_fname)
beacon_snr_fname = path.join(fname_dir, beacon.beacon_snr_fname)
@ -165,7 +164,7 @@ if __name__ == "__main__":
'no_offset': "no clock offset",
'repair_none': "unrepaired clock offset",
'repair_phases': "phase resolved clock offsets repaired",
'repair_all': "final measured clock offsets repaired"
'repair_full': "final measured clock offsets repaired"
}
# For now only implement using one freq_name
@ -248,7 +247,7 @@ if __name__ == "__main__":
for case in wanted_cases:
print(f"Starting {case} figure")
# Repair clock offsets with the measured offsets
transl_modes = {'no_offset':'orig', 'repair_phases':'phases', 'repair_all':'all'}
transl_modes = {'no_offset':'orig', 'repair_phases':'phases', 'repair_full':'full'}
if case in transl_modes:
transl_mode = transl_modes[case]
@ -310,7 +309,7 @@ if __name__ == "__main__":
#
# and plot overlapping traces at two other locations
#
if True:
if False:
for dist in [ 0.5, 5, 10, 50, 100]:
# only add distance horizontally
location = maxp_loc + np.sqrt(dist*1e3)*np.array([1,1,0])