ZH: Finally found the bug

Phases would not change even if I set an enormous clock offset
This commit is contained in:
Eric Teunis de Boone 2022-12-15 15:09:44 +01:00
parent 7cfccd0011
commit 9310b8c663

View file

@ -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)