Commit 611b189326b88471ddd50f3105c4a3a8289728f4
1 parent
ddd8c148
Rename example_sim_edisp.py to test_sim_edisp.py and example_sim_psf to test_sim_psf.py
Showing
4 changed files
with
29 additions
and
7 deletions
inst/cta/test/README
| 1 | 1 | This folder contains files used for unit testing and files that serve |
| 2 | 2 | as example scripts for the CTA interface of GammaLib. |
| 3 | 3 | |
| 4 | +benchmark_irf_computing.py | |
| 5 | + This script performs a benchmark of the response computation for all | |
| 6 | + different analysis methods (unbinned, binned, stacked). Specifically it | |
| 7 | + compares the total number of modelled counts to the expected number from | |
| 8 | + Monte-Carlo simulations. This script is used to validate the absolute | |
| 9 | + normalization of the CTA response computations. | |
| 10 | + | |
| 11 | +benchmark_ml_fitting.py | |
| 12 | + This script performs a benchmark for maximum likelihood fitting of CTA | |
| 13 | + data. | |
| 14 | + | |
| 4 | 15 | example_binned_ml_fit.py |
| 5 | 16 | Illustrates a binned maximum likelihood fit of CTA data. |
| 6 | 17 | This script implements a full analysis chain, and computes |
| 7 | 18 | also the TS statistics value that estimates the significance |
| 8 | 19 | of the source detection. |
| 9 | 20 | |
| 21 | +example_make_model.py | |
| 22 | + Illustrates how to make a model in counts space for a counts | |
| 23 | + map given a specific model in XML format. | |
| 24 | + | |
| 10 | 25 | example_sim_photons.py |
| 11 | 26 | Illustrates how photons are simulated from a source model. If |
| 12 | 27 | matplotlib is installed, the simulated photons are shown as |
| 13 | 28 | a spectrum. |
| 14 | 29 | |
| 15 | -example_make_model.py | |
| 16 | - Illustrates how to make a model in counts space for a counts | |
| 17 | - map given a specific model in XML format. | |
| 18 | 30 | test_CTA.cpp |
| 19 | 31 | Unit test C++ file for CTA specific GammaLib components. |
| 20 | 32 | |
| ... | ... | @@ -43,3 +55,11 @@ test_radial_acceptance.py |
| 43 | 55 | |
| 44 | 56 | test_response_table.py |
| 45 | 57 | Display CTA response table. |
| 58 | + | |
| 59 | +test_sim_edisp.py | |
| 60 | + Compares energy dispersion simulation to energy dispersion | |
| 61 | + model. | |
| 62 | + | |
| 63 | +test_sim_psf.py | |
| 64 | + Compares Point Spread function simulation to Point Spread function | |
| 65 | + model. | ... | ... |
inst/cta/test/example_sim_edisp.py renamed to inst/cta/test/test_sim_edisp.py
inst/cta/test/example_sim_psf.py renamed to inst/cta/test/test_sim_psf.py
testall.sh
| ... | ... | @@ -2,7 +2,7 @@ |
| 2 | 2 | # |
| 3 | 3 | # Run all test and example scripts that come with the package |
| 4 | 4 | # |
| 5 | -# Copyright (C) 2011-2013 Juergen Knoedlseder | |
| 5 | +# Copyright (C) 2011-2015 Juergen Knoedlseder | |
| 6 | 6 | # |
| 7 | 7 | # This program is free software: you can redistribute it and/or modify |
| 8 | 8 | # it under the terms of the GNU General Public License as published by |
| ... | ... | @@ -62,11 +62,13 @@ cd $base |
| 62 | 62 | echo |
| 63 | 63 | echo "=====> inst/cta/test" |
| 64 | 64 | cd inst/cta/test |
| 65 | -./test_model.py | |
| 66 | -./test_gauss.py | |
| 67 | 65 | ./example_binned_ml_fit.py |
| 66 | +./example_make_model.py | |
| 68 | 67 | ./example_sim_photons.py |
| 69 | -./example_sim_psf.py | |
| 68 | +./test_gauss.py | |
| 69 | +./test_model.py | |
| 70 | +./test_sim_psf.py | |
| 71 | +./test_sim_edisp.py | |
| 70 | 72 | cd $base |
| 71 | 73 | |
| 72 | 74 | ... | ... |