mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m-thesis-introduction.git
synced 2024-12-22 11:33:32 +01:00
ZH: configurable max_k in ca_period_from_shower
This commit is contained in:
parent
c660cb9c1a
commit
f3531402c5
1 changed files with 4 additions and 2 deletions
|
@ -151,6 +151,7 @@ if __name__ == "__main__":
|
|||
|
||||
from scriptlib import MyArgumentParser
|
||||
parser = MyArgumentParser(default_fig_dir="./figures/periods_from_shower_figures/")
|
||||
parser.add_argument('--max-k', type=float, default=2, help='Maximum abs(k) allowed to be shifted. (Default: %(default)d)')
|
||||
args = parser.parse_args()
|
||||
|
||||
fname = "ZH_airshower/mysim.sry"
|
||||
|
@ -159,7 +160,8 @@ if __name__ == "__main__":
|
|||
fig_subdir = path.join(fig_dir, 'shifts/')
|
||||
show_plots = args.show_plots
|
||||
|
||||
allowed_ks = [ -2, -1, 0, 1, 2]
|
||||
max_k = int(args.max_k)
|
||||
allowed_ks = np.arange(-max_k, max_k+1, dtype=int)
|
||||
Xref = 400
|
||||
|
||||
N_runs = 3
|
||||
|
@ -465,7 +467,7 @@ if __name__ == "__main__":
|
|||
h5attrs = h5beacon_info[freq_name].attrs
|
||||
|
||||
h5attrs['best_k'] = old_ks_per_loc[i]
|
||||
h5attrs['best_k_time'] = old_ks_per_loc[i]*dt/f_beacon
|
||||
h5attrs['best_k_time'] = old_ks_per_loc[i]/f_beacon
|
||||
|
||||
if show_plots:
|
||||
plt.show()
|
||||
|
|
Loading…
Reference in a new issue