From 9310b8c663ad6f0ca6811da18b4c77a1ad5971dc Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Thu, 15 Dec 2022 15:09:44 +0100 Subject: [PATCH] ZH: Finally found the bug Phases would not change even if I set an enormous clock offset --- simulations/airshower_beacon_simulation/ab_modify_clocks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/simulations/airshower_beacon_simulation/ab_modify_clocks.py b/simulations/airshower_beacon_simulation/ab_modify_clocks.py index b13467c..7aa62e2 100755 --- a/simulations/airshower_beacon_simulation/ab_modify_clocks.py +++ b/simulations/airshower_beacon_simulation/ab_modify_clocks.py @@ -87,12 +87,14 @@ if __name__ == "__main__": tmp_offset = h5ant_attrs['clock_offset'] if remake_clock_offsets: h5ant['traces'][0, :] -= tmp_offset + h5ant['E_AxB'][0, :] -= tmp_offset else: clock_offsets[i] = tmp_offset continue h5ant_attrs['clock_offset'] = clk_offset h5ant['traces'][0, :] += clk_offset + h5ant['E_AxB'][0, :] += clk_offset # save to simple csv np.savetxt(clocks_fname, clock_offsets)