Commit 100487b6ccb3b7f3c5e2d2f3bf48895959348ac3
1 parent
1efc3471
Adapt testall.sh script to new examples scripts
Showing
1 changed file
with
18 additions
and
25 deletions
testall.sh
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | # ===================================================================== | 2 | # ===================================================================== |
| 3 | # Run all test and example scripts that come with the package. | 3 | # Run all test and example scripts that come with the package. |
| 4 | # | 4 | # |
| 5 | -# Copyright (C) 2011 Jurgen Knodlseder | 5 | +# Copyright (C) 2011-2015 Juergen Knoedlseder |
| 6 | # | 6 | # |
| 7 | # This program is free software: you can redistribute it and/or modify | 7 | # This program is free software: you can redistribute it and/or modify |
| 8 | # it under the terms of the GNU General Public License as published by | 8 | # it under the terms of the GNU General Public License as published by |
| @@ -25,17 +25,6 @@ base=$PWD | @@ -25,17 +25,6 @@ base=$PWD | ||
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | # | 27 | # |
| 28 | -# test | ||
| 29 | -# ==== | ||
| 30 | -echo | ||
| 31 | -echo "=====> test" | ||
| 32 | -cd test | ||
| 33 | -./example_models.py | ||
| 34 | -./example_survey.py | ||
| 35 | -cd $base | ||
| 36 | - | ||
| 37 | - | ||
| 38 | -# | ||
| 39 | # examples | 28 | # examples |
| 40 | # ======== | 29 | # ======== |
| 41 | echo | 30 | echo |
| @@ -43,23 +32,27 @@ echo "=====> examples" | @@ -43,23 +32,27 @@ echo "=====> examples" | ||
| 43 | cd examples | 32 | cd examples |
| 44 | 33 | ||
| 45 | # Create local environment | 34 | # Create local environment |
| 46 | -rm -rf gammalib | ||
| 47 | -mkdir -p gammalib/share | ||
| 48 | -mkdir -p gammalib/share/caldb | ||
| 49 | -ln -s $base/caldb gammalib/share/caldb/cta | ||
| 50 | -ln -s $base/models gammalib/share/models | ||
| 51 | -export GAMMALIB=./gammalib | 35 | +rm -rf ctools |
| 36 | +#mkdir -p ctools/share | ||
| 37 | +mkdir -p ctools/share/caldb | ||
| 38 | +ln -s $base/caldb ctools/share/caldb/cta | ||
| 39 | +ln -s $base/models ctools/share/models | ||
| 40 | +export CTOOLS=$PWD/ctools | ||
| 52 | 41 | ||
| 53 | -# Make binned analysis | ||
| 54 | -./make_binned_analysis.py | 42 | +# Run checkers |
| 43 | +./check_models.py | ||
| 55 | 44 | ||
| 56 | -# Make unbinned analysis | ||
| 57 | -./make_unbinned_analysis.py | 45 | +# Run pipelines |
| 46 | +./pipeline_binned_disk.py | ||
| 47 | +./pipeline_binned_mem.py | ||
| 48 | +./pipeline_stacked_disk.py | ||
| 49 | +./pipeline_stacked_mem.py | ||
| 50 | +./pipeline_unbinned_disk.py | ||
| 51 | +./pipeline_unbinned_mem.py | ||
| 58 | 52 | ||
| 59 | -# Make TS distributions | 53 | +# Run makers |
| 54 | +./make_survey.py | ||
| 60 | ./make_ts_distributions.py 2 2 | 55 | ./make_ts_distributions.py 2 2 |
| 61 | - | ||
| 62 | -# Make pull distribution at sensitivity limit | ||
| 63 | #./make_pull_at_sensitivity_limit.py | 56 | #./make_pull_at_sensitivity_limit.py |
| 64 | 57 | ||
| 65 | # Remove local environment | 58 | # Remove local environment |