From 00d73175f7e41a6868aa3988d628a51f3c4d2fa7 Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Thu, 22 Dec 2022 17:59:23 +0100 Subject: [PATCH] ZH: never show matrix manipulation for baseline phase diffs --- .../airshower_beacon_simulation/bd_antenna_phase_deltas.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/simulations/airshower_beacon_simulation/bd_antenna_phase_deltas.py b/simulations/airshower_beacon_simulation/bd_antenna_phase_deltas.py index 37bd41e..45a76de 100755 --- a/simulations/airshower_beacon_simulation/bd_antenna_phase_deltas.py +++ b/simulations/airshower_beacon_simulation/bd_antenna_phase_deltas.py @@ -76,6 +76,8 @@ if __name__ == "__main__": if fig_dir: fig.savefig(path.join(fig_dir, __file__ + f".matrix.original.pdf")) + plt.close(fig) + # Modify the matrix to let each column represent multiple # measurements of the same baseline (j,0) phase difference @@ -97,6 +99,8 @@ if __name__ == "__main__": if fig_dir: fig.savefig(path.join(fig_dir, __file__ + f".matrix.first_row.pdf")) + plt.close(fig) + sigma_phase_matrix = sigma_phase_matrix - first_row sigma_phase_matrix = lib.phase_mod(sigma_phase_matrix) @@ -130,6 +134,8 @@ if __name__ == "__main__": if fig_dir: fig.savefig(path.join(fig_dir, __file__ + f".matrix.modified.pdf")) + plt.close(fig) + # write into antenna hdf5 with h5py.File(antennas_fname, 'a') as fp: group = fp['antennas']