ZH: rename clock repair-all mode to repair-full
This commit is contained in:
Eric Teunis de Boone 2023-05-23 12:24:30 +02:00
parent b833bfa580
commit 5243f09edc

View file

@ -34,7 +34,7 @@ def read_antenna_clock_repair_offsets(antennas, mode='full', freq_name=None):
_clock_delta = -1*ant.attrs['clock_offset'] _clock_delta = -1*ant.attrs['clock_offset']
# phase # phase
if mode in ['all', 'phases']: if mode in ['full', 'phases']:
clock_phase = ant.beacon_info[freq_name]['clock_phase_mean'] clock_phase = ant.beacon_info[freq_name]['clock_phase_mean']
f_beacon = ant.beacon_info[freq_name]['freq'] f_beacon = ant.beacon_info[freq_name]['freq']
clock_phase_time = clock_phase/(2*np.pi*f_beacon) clock_phase_time = clock_phase/(2*np.pi*f_beacon)
@ -42,7 +42,7 @@ def read_antenna_clock_repair_offsets(antennas, mode='full', freq_name=None):
_clock_delta += clock_phase_time _clock_delta += clock_phase_time
# ks # ks
if mode in ['all', 'ks']: if mode in ['full', 'ks']:
best_k_time = ant.beacon_info[freq_name]['best_k_time'] best_k_time = ant.beacon_info[freq_name]['best_k_time']
_clock_delta += best_k_time _clock_delta += best_k_time