Commit 82df6b964d682d7325283472f366f4b1f98300d8

Authored by Jürgen Knödlseder
1 parent 527d68b2

Rename test/README to test/README.md

test/README deleted
1   -This folder contains files used for unit testing and files that serve
2   -as example scripts for ctools.
3   -
4   -test_cscripts.sh
5   - Unit test for cscripts.
6   -
7   -test_ctools.sh
8   - Unit test for ctools.
9   -
10   -test_python.py
11   - Unit test for ctools Python interface.
12   -
13   -example_models.py
14   - Example Python pipeline for unbinned analysis that is executed
15   - on a number of models (point source, disk source, Gaussian
16   - source, Shell source).
17   -
18   -example_survey.py
19   - This script illustrates how a survey can be simulated and analysed.
20   - The script can be easily extended to adapt specific survey
21   - strategies and simulated source models.
test/README.md 0 → 100644
  1 +
  2 +ctools unit test
  3 +================
  4 +
  5 +This folder contains files used for ctools unit testing.
  6 +test_cscripts.sh
... ...
test/data/obs_stacked.xml
1 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 2 <observation_list title="observation list">
3 3 <observation name="Crab" id="00001" instrument="CTA">
4   - <parameter name="CountsCube" file="data/crab_cntmap.fits"/>
5   - <parameter name="ExposureCube" file="data/crab_expcube.fits"/>
6   - <parameter name="PsfCube" file="data/crab_psfcube.fits"/>
7   - <parameter name="BkgCube" file="data/crab_bkgcube.fits"/>
  4 + <parameter name="CountsCube" file="crab_cntmap.fits"/>
  5 + <parameter name="ExposureCube" file="crab_expcube.fits"/>
  6 + <parameter name="PsfCube" file="crab_psfcube.fits"/>
  7 + <parameter name="BkgCube" file="crab_bkgcube.fits"/>
8 8 </observation>
9 9 </observation_list>
... ...
test/data/obs_unbinned.xml
1 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 2 <observation_list title="observation list">
3 3 <observation name="" id="00001" instrument="CTA">
4   - <parameter name="EventList" file="data/crab_events.fits" />
  4 + <parameter name="EventList" file="crab_events.fits" />
5 5 <parameter name="EffectiveArea" file="irf/irf_file.fits" />
6 6 <parameter name="PointSpreadFunction" file="irf/irf_file.fits" />
7 7 <parameter name="EnergyDispersion" file="irf/irf_file.fits" />
... ...
test/test_cscaldb.py
... ... @@ -66,7 +66,7 @@ class Test(gammalib.GPythonTestSuite):
66 66 Test cscaldb on the command line.
67 67 """
68 68 # Kluge to set the command (installed version has no README file)
69   - if os.path.isfile('README'):
  69 + if os.path.isfile('README.md'):
70 70 cscaldb = '../cscripts/cscaldb.py'
71 71 else:
72 72 cscaldb = 'cscaldb'
... ...
test/test_csfindobs.py
... ... @@ -66,7 +66,7 @@ class Test(gammalib.GPythonTestSuite):
66 66 Test csfindobs on the command line.
67 67 """
68 68 # Kluge to set the command (installed version has no README file)
69   - if os.path.isfile('README'):
  69 + if os.path.isfile('README.md'):
70 70 csfindobs = '../cscripts/csfindobs.py'
71 71 else:
72 72 csfindobs = 'csfindobs'
... ...
test/test_csiactcopy.py
... ... @@ -66,7 +66,7 @@ class Test(gammalib.GPythonTestSuite):
66 66 Test csiactcopy on the command line.
67 67 """
68 68 # Kluge to set the command (installed version has no README file)
69   - if os.path.isfile("README"):
  69 + if os.path.isfile("README.md"):
70 70 csiactcopy = "../cscripts/csiactcopy.py"
71 71 else:
72 72 csiactcopy = "csiactcopy"
... ...
test/test_csiactdata.py
... ... @@ -66,7 +66,7 @@ class Test(gammalib.GPythonTestSuite):
66 66 Test csiactdata on the command line.
67 67 """
68 68 # Kluge to set the command (installed version has no README file)
69   - if os.path.isfile("README"):
  69 + if os.path.isfile("README.md"):
70 70 csiactdata = "../cscripts/csiactdata.py"
71 71 else:
72 72 csiactdata = "csiactdata"
... ...
test/test_csiactobs.py
... ... @@ -66,7 +66,7 @@ class Test(gammalib.GPythonTestSuite):
66 66 Test csiactobs on the command line.
67 67 """
68 68 # Kluge to set the command (installed version has no README file)
69   - if os.path.isfile("README"):
  69 + if os.path.isfile("README.md"):
70 70 csiactobs = "../cscripts/csiactobs.py"
71 71 else:
72 72 csiactobs = "csiactobs"
... ...
test/test_cslightcrv.py
... ... @@ -70,7 +70,7 @@ class Test(gammalib.GPythonTestSuite):
70 70 Test cslightcrv on the command line.
71 71 """
72 72 # Kluge to set the command (installed version has no README file)
73   - if os.path.isfile('README'):
  73 + if os.path.isfile('README.md'):
74 74 cslightcrv = '../cscripts/cslightcrv.py'
75 75 else:
76 76 cslightcrv = 'cslightcrv'
... ...
test/test_csmodelinfo.py
... ... @@ -69,7 +69,7 @@ class Test(gammalib.GPythonTestSuite):
69 69 Test csmodelinfo on the command line.
70 70 """
71 71 # Kluge to set the command (installed version has no README file)
72   - if os.path.isfile("README"):
  72 + if os.path.isfile("README.md"):
73 73 csmodelinfo = "../cscripts/csmodelinfo.py"
74 74 else:
75 75 csmodelinfo = "csmodelinfo"
... ...
test/test_csmodelmerge.py
... ... @@ -66,7 +66,7 @@ class Test(gammalib.GPythonTestSuite):
66 66 Test csmodelmerge on the command line.
67 67 """
68 68 # Kluge to set the command (installed version has no README file)
69   - if os.path.isfile("README"):
  69 + if os.path.isfile("README.md"):
70 70 csmodelmerge = "../cscripts/csmodelmerge.py"
71 71 else:
72 72 csmodelmerge = "csmodelmerge"
... ...
test/test_csobs2caldb.py
... ... @@ -73,7 +73,7 @@ class Test(gammalib.GPythonTestSuite):
73 73 Test csobs2caldb on the command line.
74 74 """
75 75 # Kluge to set the command (installed version has no README file)
76   - if os.path.isfile("README"):
  76 + if os.path.isfile("README.md"):
77 77 csobs2caldb = "../cscripts/csobs2caldb.py"
78 78 else:
79 79 csobs2caldb = "csobs2caldb"
... ...
test/test_csobsdef.py
... ... @@ -66,7 +66,7 @@ class Test(gammalib.GPythonTestSuite):
66 66 Test csobsdef on the command line.
67 67 """
68 68 # Kluge to set the command (installed version has no README file)
69   - if os.path.isfile('README'):
  69 + if os.path.isfile('README.md'):
70 70 csobsdef = '../cscripts/csobsdef.py'
71 71 else:
72 72 csobsdef = 'csobsdef'
... ...
test/test_csobsinfo.py
... ... @@ -66,7 +66,7 @@ class Test(gammalib.GPythonTestSuite):
66 66 Test csobsinfo on the command line.
67 67 """
68 68 # Kluge to set the command (installed version has no README file)
69   - if os.path.isfile("README"):
  69 + if os.path.isfile("README.md"):
70 70 csobsinfo = "../cscripts/csobsinfo.py"
71 71 else:
72 72 csobsinfo = "csobsinfo"
... ...
test/test_cspull.py
... ... @@ -66,7 +66,7 @@ class Test(gammalib.GPythonTestSuite):
66 66 Test cspull on the command line.
67 67 """
68 68 # Kluge to set the command (installed version has no README file)
69   - if os.path.isfile("README"):
  69 + if os.path.isfile("README.md"):
70 70 cspull = "../cscripts/cspull.py"
71 71 else:
72 72 cspull = "cspull"
... ...
test/test_csresmap.py
... ... @@ -66,7 +66,7 @@ class Test(gammalib.GPythonTestSuite):
66 66 Test csresmap on the command line.
67 67 """
68 68 # Kluge to set the command (installed version has no README file)
69   - if os.path.isfile('README'):
  69 + if os.path.isfile('README.md'):
70 70 csresmap = '../cscripts/csresmap.py'
71 71 else:
72 72 csresmap = 'csresmap'
... ...
test/test_csroot2caldb.py
... ... @@ -69,7 +69,7 @@ class Test(gammalib.GPythonTestSuite):
69 69 Test csroot2caldb on the command line.
70 70 """
71 71 # Kluge to set the command (installed version has no README file)
72   - if os.path.isfile("README"):
  72 + if os.path.isfile("README.md"):
73 73 csroot2caldb = "../cscripts/csroot2caldb.py"
74 74 else:
75 75 csroot2caldb = "csroot2caldb"
... ...
test/test_cssens.py
... ... @@ -66,7 +66,7 @@ class Test(gammalib.GPythonTestSuite):
66 66 Test cssens on the command line.
67 67 """
68 68 # Kluge to set the command (installed version has no README file)
69   - if os.path.isfile('README'):
  69 + if os.path.isfile('README.md'):
70 70 cssens = '../cscripts/cssens.py'
71 71 else:
72 72 cssens = 'cssens'
... ...
test/test_csspec.py
... ... @@ -66,7 +66,7 @@ class Test(gammalib.GPythonTestSuite):
66 66 Test csspec on the command line.
67 67 """
68 68 # Kluge to set the command (installed version has no README file)
69   - if os.path.isfile('README'):
  69 + if os.path.isfile('README.md'):
70 70 csspec = '../cscripts/csspec.py'
71 71 else:
72 72 csspec = 'csspec'
... ...
test/test_cstsdist.py
... ... @@ -66,7 +66,7 @@ class Test(gammalib.GPythonTestSuite):
66 66 Test cstsdist on the command line.
67 67 """
68 68 # Kluge to set the command (installed version has no README file)
69   - if os.path.isfile('README'):
  69 + if os.path.isfile('README.md'):
70 70 cstsdist = '../cscripts/cstsdist.py'
71 71 else:
72 72 cstsdist = 'cstsdist'
... ...
test/test_cstsmapmerge.py
... ... @@ -66,7 +66,7 @@ class Test(gammalib.GPythonTestSuite):
66 66 Test cstsmapmerge on the command line.
67 67 """
68 68 # Kluge to set the command (installed version has no README file)
69   - if os.path.isfile('README'):
  69 + if os.path.isfile('README.md'):
70 70 cstsmapmerge = '../cscripts/cstsmapmerge.py'
71 71 else:
72 72 cstsmapmerge = 'cstsmapmerge'
... ...
test/test_csworkflow.py
... ... @@ -64,7 +64,7 @@ class Test(gammalib.GPythonTestSuite):
64 64 def _test_cmd(self):
65 65  
66 66 # Kluge to set the command (installed version has no README file)
67   - if os.path.isfile('README'):
  67 + if os.path.isfile('README.md'):
68 68 csworkflow = '../cscripts/csworkflow.py'
69 69 else:
70 70 csworkflow = 'csworkflow'
... ...
test/test_ctbin.py
... ... @@ -69,7 +69,7 @@ class Test(gammalib.GPythonTestSuite):
69 69 Test ctbin on the command line.
70 70 """
71 71 # Kluge to set the command (installed version has no README file)
72   - if os.path.isfile("README"):
  72 + if os.path.isfile("README.md"):
73 73 ctbin = "../src/ctbin/ctbin"
74 74 else:
75 75 ctbin = "ctbin"
... ...
test/test_ctbkgcube.py
... ... @@ -62,7 +62,7 @@ class Test(gammalib.GPythonTestSuite):
62 62 Test ctbkgcube on the command line.
63 63 """
64 64 # Kluge to set the command (installed version has no README file)
65   - if os.path.isfile('README'):
  65 + if os.path.isfile('README.md'):
66 66 ctbkgcube = '../src/ctbkgcube/ctbkgcube'
67 67 else:
68 68 ctbkgcube = 'ctbkgcube'
... ...
test/test_ctbutterfly.py
... ... @@ -62,7 +62,7 @@ class Test(gammalib.GPythonTestSuite):
62 62 Test ctbutterfly on the command line.
63 63 """
64 64 # Kluge to set the command (installed version has no README file)
65   - if os.path.isfile('README'):
  65 + if os.path.isfile('README.md'):
66 66 ctbutterfly = '../src/ctbutterfly/ctbutterfly'
67 67 else:
68 68 ctbutterfly = 'ctbutterfly'
... ...
test/test_ctcubemask.py
... ... @@ -62,7 +62,7 @@ class Test(gammalib.GPythonTestSuite):
62 62 Test ctcubemask on the command line.
63 63 """
64 64 # Kluge to set the command (installed version has no README file)
65   - if os.path.isfile('README'):
  65 + if os.path.isfile('README.md'):
66 66 ctcubemask = '../src/ctcubemask/ctcubemask'
67 67 else:
68 68 ctcubemask = 'ctcubemask'
... ...
test/test_ctedispcube.py
... ... @@ -62,7 +62,7 @@ class Test(gammalib.GPythonTestSuite):
62 62 Test ctedispcube on the command line.
63 63 """
64 64 # Kluge to set the command (installed version has no README file)
65   - if os.path.isfile('README'):
  65 + if os.path.isfile('README.md'):
66 66 ctedispcube = '../src/ctedispcube/ctedispcube'
67 67 else:
68 68 ctedispcube = 'ctedispcube'
... ...
test/test_cterror.py
... ... @@ -69,7 +69,7 @@ class Test(gammalib.GPythonTestSuite):
69 69 Test cterror on the command line.
70 70 """
71 71 # Kluge to set the command (installed version has no README file)
72   - if os.path.isfile('README'):
  72 + if os.path.isfile('README.md'):
73 73 cterror = '../src/cterror/cterror'
74 74 else:
75 75 cterror = 'cterror'
... ...
test/test_ctexpcube.py
... ... @@ -62,7 +62,7 @@ class Test(gammalib.GPythonTestSuite):
62 62 Test ctexpcube on the command line.
63 63 """
64 64 # Kluge to set the command (installed version has no README file)
65   - if os.path.isfile('README'):
  65 + if os.path.isfile('README.md'):
66 66 ctexpcube = '../src/ctexpcube/ctexpcube'
67 67 else:
68 68 ctexpcube = 'ctexpcube'
... ...
test/test_ctlike.py
... ... @@ -62,7 +62,7 @@ class Test(gammalib.GPythonTestSuite):
62 62 Test ctlike on the command line.
63 63 """
64 64 # Kluge to set the command (installed version has no README file)
65   - if os.path.isfile('README'):
  65 + if os.path.isfile('README.md'):
66 66 ctlike = '../src/ctlike/ctlike'
67 67 else:
68 68 ctlike = 'ctlike'
... ...
test/test_ctmapcube.py
... ... @@ -69,7 +69,7 @@ class Test(gammalib.GPythonTestSuite):
69 69 Test ctmapcube on the command line.
70 70 """
71 71 # Kluge to set the command (installed version has no README file)
72   - if os.path.isfile("README"):
  72 + if os.path.isfile("README.md"):
73 73 ctmapcube = "../src/ctmapcube/ctmapcube"
74 74 else:
75 75 ctmapcube = "ctmapcube"
... ...
test/test_ctmodel.py
... ... @@ -62,7 +62,7 @@ class Test(gammalib.GPythonTestSuite):
62 62 Test ctmodel on the command line.
63 63 """
64 64 # Kluge to set the command (installed version has no README file)
65   - if os.path.isfile('README'):
  65 + if os.path.isfile('README.md'):
66 66 ctmodel = '../src/ctmodel/ctmodel'
67 67 else:
68 68 ctmodel = 'ctmodel'
... ...
test/test_ctobssim.py
... ... @@ -72,7 +72,7 @@ class Test(gammalib.GPythonTestSuite):
72 72 Test ctobssim on the command line.
73 73 """
74 74 # Kluge to set the command (installed version has no README file)
75   - if os.path.isfile("README"):
  75 + if os.path.isfile("README.md"):
76 76 ctobssim = "../src/ctobssim/ctobssim"
77 77 else:
78 78 ctobssim = "ctobssim"
... ...
test/test_ctpsfcube.py
... ... @@ -62,7 +62,7 @@ class Test(gammalib.GPythonTestSuite):
62 62 Test ctpsfcube on the command line.
63 63 """
64 64 # Kluge to set the command (installed version has no README file)
65   - if os.path.isfile('README'):
  65 + if os.path.isfile('README.md'):
66 66 ctpsfcube = '../src/ctpsfcube/ctpsfcube'
67 67 else:
68 68 ctpsfcube = 'ctpsfcube'
... ...
test/test_ctselect.py
... ... @@ -62,7 +62,7 @@ class Test(gammalib.GPythonTestSuite):
62 62 Test ctselect on the command line.
63 63 """
64 64 # Kluge to set the command (installed version has no README file)
65   - if os.path.isfile('README'):
  65 + if os.path.isfile('README.md'):
66 66 ctselect = '../src/ctselect/ctselect'
67 67 else:
68 68 ctselect = 'ctselect'
... ...
test/test_ctskymap.py
... ... @@ -62,7 +62,7 @@ class Test(gammalib.GPythonTestSuite):
62 62 Test ctskymap on the command line.
63 63 """
64 64 # Kluge to set the command (installed version has no README file)
65   - if os.path.isfile('README'):
  65 + if os.path.isfile('README.md'):
66 66 ctskymap = '../src/ctskymap/ctskymap'
67 67 else:
68 68 ctskymap = 'ctskymap'
... ...
test/test_cttsmap.py
... ... @@ -62,7 +62,7 @@ class Test(gammalib.GPythonTestSuite):
62 62 Test cttsmap on the command line.
63 63 """
64 64 # Kluge to set the command (installed version has no README file)
65   - if os.path.isfile('README'):
  65 + if os.path.isfile('README.md'):
66 66 cttsmap = '../src/cttsmap/cttsmap'
67 67 else:
68 68 cttsmap = 'cttsmap'
... ...
test/test_ctulimit.py
... ... @@ -62,7 +62,7 @@ class Test(gammalib.GPythonTestSuite):
62 62 Test ctulimit on the command line.
63 63 """
64 64 # Kluge to set the command (installed version has no README file)
65   - if os.path.isfile('README'):
  65 + if os.path.isfile('README.md'):
66 66 ctulimit = '../src/ctulimit/ctulimit'
67 67 else:
68 68 ctulimit = 'ctulimit'
... ...