From 64fb7df4f9a3c1f3bc214cdc58a05fb15dba05e2 Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Wed, 11 Jan 2023 18:33:56 +0100 Subject: [PATCH] ZH: Rename cc_** to da_reconstruction --- .../airshower_beacon_simulation/ca_period_from_shower.py | 2 +- ...power_along_axis_reconstruction.py => da_reconstruction.py} | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) rename simulations/airshower_beacon_simulation/{cc_power_along_axis_reconstruction.py => da_reconstruction.py} (94%) diff --git a/simulations/airshower_beacon_simulation/ca_period_from_shower.py b/simulations/airshower_beacon_simulation/ca_period_from_shower.py index bb54ae6..6d2aaf7 100755 --- a/simulations/airshower_beacon_simulation/ca_period_from_shower.py +++ b/simulations/airshower_beacon_simulation/ca_period_from_shower.py @@ -424,7 +424,7 @@ if __name__ == "__main__": # Abort if no improvement if ( r!= 0 and (old_ks_per_loc == ks_per_loc[best_idx]).all() ): - print("No changes from previous grid, breaking at iteration {r} out of {N_runs}") + print(f"No changes from previous grid, breaking at iteration {r} out of {N_runs}") try: with open(run_break_fname, 'wt', encoding='utf-8') as fp: diff --git a/simulations/airshower_beacon_simulation/cc_power_along_axis_reconstruction.py b/simulations/airshower_beacon_simulation/da_reconstruction.py similarity index 94% rename from simulations/airshower_beacon_simulation/cc_power_along_axis_reconstruction.py rename to simulations/airshower_beacon_simulation/da_reconstruction.py index a8eb731..55cbf46 100755 --- a/simulations/airshower_beacon_simulation/cc_power_along_axis_reconstruction.py +++ b/simulations/airshower_beacon_simulation/da_reconstruction.py @@ -33,12 +33,11 @@ if __name__ == "__main__": fig_dir = "./figures/" fig_subdir = path.join(fig_dir, 'reconstruction') show_plots = False - pickle_fname = path.join(fig_subdir, 'res.pkl') #### fname_dir = path.dirname(fname) antennas_fname = path.join(fname_dir, beacon.antennas_fname) - time_diffs_fname = 'time_diffs.hdf5' if not True else antennas_fname + pickle_fname = path.join(fname_dir, 'res.pkl') # create fig_dir if fig_dir: