diff --git a/airshower_beacon_simulation/ca_period_from_shower.py b/airshower_beacon_simulation/ca_period_from_shower.py index 2d3dc66..e5d33f2 100755 --- a/airshower_beacon_simulation/ca_period_from_shower.py +++ b/airshower_beacon_simulation/ca_period_from_shower.py @@ -343,18 +343,18 @@ if __name__ == "__main__": wx, x = 200, min(ant.t_AxB) ax.set_xlim(x-5, x+wx) - fig.savefig(path.join(fig_dir, __file__+f'.traces.A{ant.name}.zoomed.beacon.pdf')) + fig.savefig(path.join(fig_dir, path.basename(__file__)+f'.traces.A{ant.name}.zoomed.beacon.pdf')) if True: # zoomed on peak of this trace idx = np.argmax(ev.antennas[i].E_AxB) x = ev.antennas[i].t_AxB[idx] wx = 300 ax.set_xlim(x-wx//2, x+wx//2) - fig.savefig(path.join(fig_dir, __file__+f".traces.A{ant.name}.zoomed.peak.pdf")) + fig.savefig(path.join(fig_dir, path.basename(__file__)+f".traces.A{ant.name}.zoomed.peak.pdf")) ax.set_xlim(*old_xlim) - fig.savefig(path.join(fig_dir, __file__+f'.traces.A{ant.name}.pdf')) + fig.savefig(path.join(fig_dir, path.basename(__file__)+f'.traces.A{ant.name}.pdf')) if show_plots: plt.show() diff --git a/airshower_beacon_simulation/da_reconstruction.py b/airshower_beacon_simulation/da_reconstruction.py index 1c47771..2bc10de 100755 --- a/airshower_beacon_simulation/da_reconstruction.py +++ b/airshower_beacon_simulation/da_reconstruction.py @@ -187,18 +187,18 @@ if __name__ == "__main__": wx, x = 100, 100 ax.set_xlim(x-wx, x+wx) - fig.savefig(path.join(fig_dir, __file__+f'.traces.A{ant.name}.zoomed.beacon{fname_extra}.pdf')) + fig.savefig(path.join(fig_dir, path.basename(__file__)+f'.traces.A{ant.name}.zoomed.beacon{fname_extra}.pdf')) if True: # zoomed on peak of this trace idx = np.argmax(ev.antennas[i].E_AxB) x = ev.antennas[i].t_AxB[idx] wx = 100 ax.set_xlim(x-wx, x+wx) - fig.savefig(path.join(fig_dir, __file__+f".traces.A{ant.name}.zoomed.peak{fname_extra}.pdf")) + fig.savefig(path.join(fig_dir, path.basename(__file__)+f".traces.A{ant.name}.zoomed.peak{fname_extra}.pdf")) ax.set_xlim(*old_xlim) - fig.savefig(path.join(fig_dir, __file__+f'.traces.A{i}.pdf')) + fig.savefig(path.join(fig_dir, path.basename(__file__)+f'.traces.A{i}.pdf')) N_X, Xlow, Xhigh = 23, 100, 1200