diff --git a/tests/scripts/gen_test_templ.sh b/tests/scripts/gen_test_templ.sh index 0ae135c..02c2be1 100755 --- a/tests/scripts/gen_test_templ.sh +++ b/tests/scripts/gen_test_templ.sh @@ -3,7 +3,7 @@ DIR=`dirname $0`/../ DBFILE=$DIR/files_config1.db PREF=$DIR/tmp/ PREF1=$DIR/templ_data_test/ -PREF_TMP=$DIR/templ_data_tmp/ +PREF_TMP=$PREF1/tmp/ CONF_NAME=config1 STEP=1 diff --git a/tests/scripts/make_templ.sh b/tests/scripts/make_templ_aat_triang.sh similarity index 71% rename from tests/scripts/make_templ.sh rename to tests/scripts/make_templ_aat_triang.sh index 3170af1..0ca1b5c 100755 --- a/tests/scripts/make_templ.sh +++ b/tests/scripts/make_templ_aat_triang.sh @@ -1,6 +1,7 @@ #!/bin/bash -e DIR=`dirname $0`/../ -PREFIX=$DIR//templ_data +PREFIX0=$DIR//templ_data/ +PREFIX=$DIR//templ_data_aat TEMPLPREF=$DIR/small_phoenix/ WAVEFILE=$DIR/small_phoenix/WAVE_PHOENIX-ACES-AGSS-COND-2011.fits BLAM0=3500 @@ -18,8 +19,8 @@ RVS_MAKE_ND="$COV `command -v rvs_make_nd`" RVS_MAKE_CCF="$COV `command -v rvs_make_ccf`" -$RVS_READ_GRID --prefix $TEMPLPREF --templdb $PREFIX/files.db -$RVS_MAKE_INTERPOL --air --setup $BNAME --lambda0 $BLAM0 --lambda1 $BLAM1 --resol $BRESOL --step $BSTEP --templdb ${PREFIX}/files.db --oprefix ${PREFIX}/ --templprefix $TEMPLPREF --fixed_fwhm --wavefile $WAVEFILE --nthreads 1 +$RVS_READ_GRID --prefix $TEMPLPREF --templdb $PREFIX0/files.db +$RVS_MAKE_INTERPOL --air --setup $BNAME --lambda0 $BLAM0 --lambda1 $BLAM1 --resol $BRESOL --step $BSTEP --templdb ${PREFIX0}/files.db --oprefix ${PREFIX}/ --templprefix $TEMPLPREF --fixed_fwhm --wavefile $WAVEFILE --nthreads 1 $RVS_MAKE_ND --prefix ${PREFIX}/ --setup $BNAME diff --git a/tests/scripts/make_templ_nn.sh b/tests/scripts/make_templ_nn.sh index ea1c784..f83c187 100755 --- a/tests/scripts/make_templ_nn.sh +++ b/tests/scripts/make_templ_nn.sh @@ -1,6 +1,7 @@ #!/bin/bash -e DIR=`dirname $0`/../ -PREFIX=$DIR//templ_data +PREFIX0=$DIR//templ_data +PREFIX=$DIR//templ_data_nn/ TEMPLPREF=$DIR/small_phoenix/ WAVEFILE=$DIR/small_phoenix/WAVE_PHOENIX-ACES-AGSS-COND-2011.fits BLAM0=3500 @@ -18,6 +19,6 @@ RVS_MAKE_ND="$COV `command -v rvs_train_nn_interpolator`" RVS_MAKE_CCF="$COV `command -v rvs_make_ccf`" -$RVS_READ_GRID --prefix $TEMPLPREF --templdb $PREFIX/files.db -$RVS_MAKE_INTERPOL --air --setup $BNAME --lambda0 $BLAM0 --lambda1 $BLAM1 --resol $BRESOL --step $BSTEP --templdb ${PREFIX}/files.db --oprefix ${PREFIX}/ --templprefix $TEMPLPREF --fixed_fwhm --wavefile $WAVEFILE --nthreads 1 +$RVS_READ_GRID --prefix $TEMPLPREF --templdb $PREFIX0/files.db +$RVS_MAKE_INTERPOL --air --setup $BNAME --lambda0 $BLAM0 --lambda1 $BLAM1 --resol $BRESOL --step $BSTEP --templdb ${PREFIX0}/files.db --oprefix ${PREFIX}/ --templprefix $TEMPLPREF --fixed_fwhm --wavefile $WAVEFILE --nthreads 1 $RVS_MAKE_ND --dir ${PREFIX}/ --pca_init --npc 10 --cpu --setup $BNAME diff --git a/tests/scripts/make_templ_regul.sh b/tests/scripts/make_templ_regul.sh index c21b0ec..8c4f68b 100755 --- a/tests/scripts/make_templ_regul.sh +++ b/tests/scripts/make_templ_regul.sh @@ -1,6 +1,7 @@ #!/bin/bash -e DIR=`dirname $0`/../ -PREFIX=$DIR//templ_data +PREFIX0=$DIR/templ_data +PREFIX=$DIR/templ_data_regul TEMPLPREF=$DIR/small_phoenix/ WAVEFILE=$DIR/small_phoenix/WAVE_PHOENIX-ACES-AGSS-COND-2011.fits BLAM0=3500 @@ -16,8 +17,8 @@ RVS_MAKE_INTERPOL="$COV `command -v rvs_make_interpol`" RVS_REGULARIZE_GRID="$COV `command -v rvs_regularize_grid`" -$RVS_READ_GRID --prefix $TEMPLPREF --templdb $PREFIX/files.db -$RVS_MAKE_INTERPOL --air --setup $BNAME --lambda0 $BLAM0 --lambda1 $BLAM1 --resol $BRESOL --step $BSTEP --templdb ${PREFIX}/files.db --oprefix ${PREFIX}/ --templprefix $TEMPLPREF --fixed_fwhm --wavefile $WAVEFILE --nthreads 1 +$RVS_READ_GRID --prefix $TEMPLPREF --templdb $PREFIX0/files.db +$RVS_MAKE_INTERPOL --air --setup $BNAME --lambda0 $BLAM0 --lambda1 $BLAM1 --resol $BRESOL --step $BSTEP --templdb ${PREFIX0}/files.db --oprefix ${PREFIX}/ --templprefix $TEMPLPREF --fixed_fwhm --wavefile $WAVEFILE --nthreads 1 $RVS_REGULARIZE_GRID --input $PREFIX/specs_$BNAME.pkl --output $PREFIX/specs_$BNAME.pkl diff --git a/tests/test_01template_creation.py b/tests/test_01template_creation.py index 1b3fb12..6bf706d 100644 --- a/tests/test_01template_creation.py +++ b/tests/test_01template_creation.py @@ -33,8 +33,9 @@ def run_script(script): def test_scripts(): run_script(path + '/scripts/make_templ_nn.sh') - run_script(path + '/scripts/make_templ.sh') - run_script(path + '/scripts/gen_test_templ.sh') + run_script(path + '/scripts/make_templ_aat_triang.sh') run_script(path + '/scripts/make_templ_regul.sh') + + run_script(path + '/scripts/gen_test_templ.sh') run_script(path + '/scripts/gen_test_templ_grid.sh')