From 88b0b3d1d17abe47f716b5381cd8299b27150f96 Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Fri, 2 Dec 2022 18:04:38 +0100 Subject: [PATCH] ZH: true_phase: flags to remove minimum phase --- .../airshower_beacon_simulation/bb_beacon_true_phases.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/simulations/airshower_beacon_simulation/bb_beacon_true_phases.py b/simulations/airshower_beacon_simulation/bb_beacon_true_phases.py index f826a20..71a4676 100755 --- a/simulations/airshower_beacon_simulation/bb_beacon_true_phases.py +++ b/simulations/airshower_beacon_simulation/bb_beacon_true_phases.py @@ -41,6 +41,9 @@ if __name__ == "__main__": c_light = 3e8*1e-9 show_plots = True + remove_absolute_phase_offset_first_antenna = True # takes precedence + remove_absolute_phase_offset_minimum = True + #### fname_dir = path.dirname(fname) antennas_fname = path.join(fname_dir, beacon.antennas_fname) @@ -67,8 +70,8 @@ if __name__ == "__main__": # Remove the phase from one antenna # this is a free parameter # (only required for absolute timing) - if True: - if True: # just take the first phase + if remove_absolute_phase_offset_first_antenna or remove_absolute_phase_offset_minimum: + if remove_absolute_phase_offset_first_antenna: # just take the first phase minimum_phase = -1*true_phases[0] else: # take the minimum minimum_phase = -1*np.min(true_phases, axis=-1)