mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m-thesis-introduction.git
synced 2025-05-17 13:29:25 +02:00
Merge branch 'more-makefile' into main
It allows to modify a config.mk to set variables across scripts.
This commit is contained in:
commit
a91fe04533
18 changed files with 209 additions and 131 deletions
|
@ -1,35 +1,61 @@
|
|||
.PHONY: all
|
||||
|
||||
|
||||
FIG_DIR := ./figures
|
||||
|
||||
all: beacon clocks phases findks reconstruct
|
||||
-include config.mk
|
||||
|
||||
MAX_K ?= 3
|
||||
CLK_DEV ?= 20
|
||||
TRACE_N ?= 4096
|
||||
TRACE_PRE ?= 500
|
||||
NOISE_SIGMA ?= 1e4
|
||||
|
||||
BEAC_AMP ?= 1e3 0 0
|
||||
BEAC_F ?= 51.53e-3
|
||||
BEAC_DECAY ?= 0
|
||||
|
||||
PB_LOW ?= 0.03
|
||||
PB_HIGH ?= 0.08
|
||||
|
||||
REF_ANTS ?=
|
||||
|
||||
N_MASK ?= 500
|
||||
|
||||
DATA_DIR ?= ./data
|
||||
INPUT_DIR ?= ./ZH_airshower/
|
||||
SEED ?= 12345
|
||||
|
||||
all: beacon clocks phases findks vary-fixes reconstruct
|
||||
|
||||
beacon:
|
||||
./aa_generate_beacon.py | tee figures/aa.log
|
||||
./ab_modify_clocks.py 0 | tee figures/ab.log
|
||||
./ac_show_signal_to_noise.py --no-show-plots --fig-dir=${FIG_DIR}
|
||||
./view_beaconed_antenna.py 72 -p x -p y -p z --no-show-plots --fig-dir=${FIG_DIR}
|
||||
./aa_generate_beacon.py -N ${TRACE_N} -P ${TRACE_PRE} -n ${NOISE_SIGMA} -a ${BEAC_AMP} -f ${BEAC_F} -l ${PB_LOW} -u ${PB_HIGH} -d ${BEAC_DECAY} --data-dir ${DATA_DIR} --input-fname ${INPUT_DIR} | tee ${FIG_DIR}/aa.log
|
||||
./ab_modify_clocks.py 0 --data-dir ${DATA_DIR} | tee ${FIG_DIR}/ab.log
|
||||
./ac_show_signal_to_noise.py --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
||||
./view_beaconed_antenna.py 72 -p x -p y -p z -p n -p b --ft --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
||||
|
||||
clocks:
|
||||
./ab_modify_clocks.py 15 --gaussian
|
||||
./ab_modify_clocks.py ${CLK_DEV} --seed ${SEED} --gaussian --data-dir ${DATA_DIR}
|
||||
|
||||
phases:
|
||||
./ba_measure_beacon_phase.py --no-show-plots --fig-dir=${FIG_DIR}
|
||||
./bb_measure_clock_phase.py --no-show-plots --fig-dir=${FIG_DIR}
|
||||
./bc_baseline_phase_deltas.py --no-show-plots --fig-dir=${FIG_DIR}
|
||||
./bd_antenna_phase_deltas.py --no-show-plots --fig-dir=${FIG_DIR}
|
||||
./ba_measure_beacon_phase.py --N-mask ${N_MASK} --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
||||
./bb_measure_clock_phase.py --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
||||
./bc_baseline_phase_deltas.py ${REF_ANTS} --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
||||
./bd_antenna_phase_deltas.py --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
||||
|
||||
findks:
|
||||
./ca_period_from_shower.py --no-show-plots --fig-dir=${FIG_DIR}
|
||||
./cb_report_measured_antenna_time_offsets.py --no-show-plots --fig-dir=${FIG_DIR}
|
||||
./ca_period_from_shower.py --input-fname ${INPUT_DIR} --max-k ${MAX_K} --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR} -l ${PB_LOW} -u ${PB_HIGH}
|
||||
./cb_report_measured_antenna_time_offsets.py --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
||||
|
||||
vary-fixes:
|
||||
./dc_grid_power_time_fixes.py --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR} --input-fname ${INPUT_DIR}
|
||||
|
||||
reconstruct:
|
||||
./da_reconstruction.py --no-show-plots --fig-dir=${FIG_DIR}
|
||||
./db_longitudinal_figure.py --no-show-plots --fig-dir=${FIG_DIR}
|
||||
./dc_grid_power_time_fixes.py --no-show-plots --fig-dir=${FIG_DIR}
|
||||
./da_reconstruction.py --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR} --input-fname ${INPUT_DIR}
|
||||
./db_longitudinal_figure.py --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
||||
|
||||
dist-clean:
|
||||
rm -f ZH_airshower/antennas.hdf5
|
||||
rm -f ZH_airshower/clocks.csv
|
||||
rm -f ZH_airshower/tx.json
|
||||
rm -vf ${DATA_DIR}/antennas.hdf5
|
||||
rm -vf ${DATA_DIR}/ca_breaked_run
|
||||
rm -vf ${DATA_DIR}/res.pkl
|
||||
rm -vf ${DATA_DIR}/clocks.csv
|
||||
rm -vf ${DATA_DIR}/tx.json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue