Commit 94555b797918b40e4ea57531d046bf0ad3bd9fb0
1 parent
9afc4de2
Added small test cubes to test/data and adjusted unit test case
Showing
5 changed files
with
27 additions
and
6 deletions
test/data/crab_bkgcube.fits.gz
0 → 100644
No preview for this file type
test/data/crab_bkgcube.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| 2 | +<source_library title="source library"> | |
| 3 | + <source name="Crab" type="PointSource"> | |
| 4 | + <spectrum type="PowerLaw"> | |
| 5 | + <parameter name="Prefactor" value="5.7" error="0" scale="1e-16" min="1e-07" max="1000" free="1" /> | |
| 6 | + <parameter name="Index" value="2.48" error="0" scale="-1" min="0" max="5" free="1" /> | |
| 7 | + <parameter name="Scale" value="0.3" scale="1e+06" min="0.01" max="1000" free="0" /> | |
| 8 | + </spectrum> | |
| 9 | + <spatialModel type="SkyDirFunction"> | |
| 10 | + <parameter name="RA" value="83.6331" scale="1" min="-360" max="360" free="0" /> | |
| 11 | + <parameter name="DEC" value="22.0145" scale="1" min="-90" max="90" free="0" /> | |
| 12 | + </spatialModel> | |
| 13 | + </source> | |
| 14 | + <source name="BackgroundModel" type="CTACubeBackground" instrument="CTA,HESS,MAGIC,VERITAS"> | |
| 15 | + <spectrum type="PowerLaw"> | |
| 16 | + <parameter name="Prefactor" value="1" error="0" scale="1" min="0.01" max="100" free="1" /> | |
| 17 | + <parameter name="Index" value="0" error="0" scale="1" min="-5" max="5" free="1" /> | |
| 18 | + <parameter name="Scale" value="1" scale="1e+06" free="0" /> | |
| 19 | + </spectrum> | |
| 20 | + </source> | |
| 21 | +</source_library> | ... | ... |
test/data/crab_expcube.fits.gz
0 → 100644
No preview for this file type
test/data/crab_psfcube.fits.gz
0 → 100644
No preview for this file type
test/test_cscripts.sh.in
| ... | ... | @@ -36,7 +36,7 @@ $ECHO "*****************" |
| 36 | 36 | # |
| 37 | 37 | # Remove any existing result files |
| 38 | 38 | # ================================ |
| 39 | -rm -rf spectrum*.fits lightcurve*.fits resmap*.fits obs.xml *.dat | |
| 39 | +rm -rf *.fits *.xml *.dat | |
| 40 | 40 | |
| 41 | 41 | |
| 42 | 42 | # |
| ... | ... | @@ -227,11 +227,11 @@ $ECHO " ok" |
| 227 | 227 | $ECHO -n "Test csspec (binned): " |
| 228 | 228 | chmod +x @abs_top_srcdir@/cscripts/csspec.py |
| 229 | 229 | @abs_top_srcdir@/cscripts/csspec.py \ |
| 230 | - inobs="cntmap2.fits" \ | |
| 231 | - expcube="expcube2.fits" \ | |
| 232 | - psfcube="psfcube2.fits" \ | |
| 233 | - bkgcube="bkgcube2.fits" \ | |
| 234 | - inmodel="bkgcube2.xml" \ | |
| 230 | + inobs="data/crab_cntmap_small.fits.gz" \ | |
| 231 | + expcube="data/crab_expcube.fits.gz" \ | |
| 232 | + psfcube="data/crab_psfcube.fits.gz" \ | |
| 233 | + bkgcube="data/crab_bkgcube.fits.gz" \ | |
| 234 | + inmodel="data/crab_bkgcube.xml" \ | |
| 235 | 235 | enumbins=2 \ |
| 236 | 236 | emin=0.1 \ |
| 237 | 237 | emax=100.0 \ | ... | ... |