Commit 92c56c25e70db57b8df38291a5164c1127dbc819
1 parent
59097842
Rename scripts folder into cscripts.
Showing
24 changed files
with
21 additions
and
21 deletions
Makefile.am
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | ACLOCAL_AMFLAGS = -I m4 | 4 | ACLOCAL_AMFLAGS = -I m4 |
| 5 | 5 | ||
| 6 | # Subdirectories | 6 | # Subdirectories |
| 7 | -SUBDIRS = src pyext test caldb models examples scripts | 7 | +SUBDIRS = src pyext test caldb models examples cscripts |
| 8 | 8 | ||
| 9 | # Pkgconfig directory | 9 | # Pkgconfig directory |
| 10 | pkgconfigdir = $(libdir)/pkgconfig | 10 | pkgconfigdir = $(libdir)/pkgconfig |
configure.ac
| @@ -900,7 +900,7 @@ AC_CONFIG_FILES([Makefile | @@ -900,7 +900,7 @@ AC_CONFIG_FILES([Makefile | ||
| 900 | caldb/Makefile | 900 | caldb/Makefile |
| 901 | models/Makefile | 901 | models/Makefile |
| 902 | examples/Makefile | 902 | examples/Makefile |
| 903 | - scripts/Makefile | 903 | + cscripts/Makefile |
| 904 | ctools.pc | 904 | ctools.pc |
| 905 | testconf.sh], | 905 | testconf.sh], |
| 906 | [if test -f test/test_cscripts.sh; then chmod +x test/test_cscripts.sh; fi; | 906 | [if test -f test/test_cscripts.sh; then chmod +x test/test_cscripts.sh; fi; |
scripts/Makefile.am renamed to cscripts/Makefile.am
scripts/__init__.py renamed to cscripts/__init__.py
scripts/cscaldb.py renamed to cscripts/cscaldb.py
scripts/cshessobs.py renamed to cscripts/cshessobs.py
scripts/csinfo.py renamed to cscripts/csinfo.py
scripts/cslightcrv.py renamed to cscripts/cslightcrv.py
scripts/csobsdef.py renamed to cscripts/csobsdef.py
scripts/cspull.py renamed to cscripts/cspull.py
scripts/csresmap.py renamed to cscripts/csresmap.py
scripts/cssens.py renamed to cscripts/cssens.py
scripts/csspec.py renamed to cscripts/csspec.py
scripts/cstsdist.py renamed to cscripts/cstsdist.py
scripts/cta_kb_bkgrates.py renamed to cscripts/cta_kb_bkgrates.py
scripts/cta_kb_root2caldb.py renamed to cscripts/cta_kb_root2caldb.py
scripts/cta_make_nodes.py renamed to cscripts/cta_make_nodes.py
scripts/cta_root2caldb.py renamed to cscripts/cta_root2caldb.py
scripts/cta_root2irf.py renamed to cscripts/cta_root2irf.py
scripts/lsmodel.py renamed to cscripts/lsmodel.py
scripts/obsutils.py renamed to cscripts/obsutils.py
scripts/tsmerge.py renamed to cscripts/tsmerge.py
test/Makefile.am
| @@ -8,7 +8,7 @@ MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@ | @@ -8,7 +8,7 @@ MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@ | ||
| 8 | if WITH_PYTHON | 8 | if WITH_PYTHON |
| 9 | TEST_CSCRIPTS = test_cscripts.sh | 9 | TEST_CSCRIPTS = test_cscripts.sh |
| 10 | TEST_PYTHON_SCRIPT = test_python.py | 10 | TEST_PYTHON_SCRIPT = test_python.py |
| 11 | - TEST_PYTHON_ENV = PYTHONPATH=$(top_builddir)/pyext:$(top_builddir)/pyext/build/ctools/ctools:$(top_builddir)/scripts:$(pythondir):$(pyexecdir):$(PYTHONPATH) | 11 | + TEST_PYTHON_ENV = PYTHONPATH=$(top_builddir)/pyext:$(top_builddir)/pyext/build/ctools/ctools:$(top_builddir)/cscripts:$(pythondir):$(pyexecdir):$(PYTHONPATH) |
| 12 | endif | 12 | endif |
| 13 | 13 | ||
| 14 | # Set test environment | 14 | # Set test environment |
test/test_cscripts.sh.in
| @@ -52,8 +52,8 @@ export PFILES=pfiles | @@ -52,8 +52,8 @@ export PFILES=pfiles | ||
| 52 | # Test csobsdef | 52 | # Test csobsdef |
| 53 | # ============= | 53 | # ============= |
| 54 | $ECHO -n "Test csobsdef: " | 54 | $ECHO -n "Test csobsdef: " |
| 55 | -chmod +x @abs_top_srcdir@/scripts/csobsdef.py | ||
| 56 | -@abs_top_srcdir@/scripts/csobsdef.py \ | 55 | +chmod +x @abs_top_srcdir@/cscripts/csobsdef.py |
| 56 | +@abs_top_srcdir@/cscripts/csobsdef.py \ | ||
| 57 | inpnt="data/pntdef.dat" \ | 57 | inpnt="data/pntdef.dat" \ |
| 58 | outobs="obs.xml" \ | 58 | outobs="obs.xml" \ |
| 59 | caldb="irf" \ | 59 | caldb="irf" \ |
| @@ -77,8 +77,8 @@ $ECHO " ok" | @@ -77,8 +77,8 @@ $ECHO " ok" | ||
| 77 | # Test cspull | 77 | # Test cspull |
| 78 | # =========== | 78 | # =========== |
| 79 | $ECHO -n "Test cspull: " | 79 | $ECHO -n "Test cspull: " |
| 80 | -chmod +x @abs_top_srcdir@/scripts/cspull.py | ||
| 81 | -@abs_top_srcdir@/scripts/cspull.py \ | 80 | +chmod +x @abs_top_srcdir@/cscripts/cspull.py |
| 81 | +@abs_top_srcdir@/cscripts/cspull.py \ | ||
| 82 | inmodel="data/crab.xml" \ | 82 | inmodel="data/crab.xml" \ |
| 83 | outfile="pull.dat" \ | 83 | outfile="pull.dat" \ |
| 84 | ntrials="3" \ | 84 | ntrials="3" \ |
| @@ -110,8 +110,8 @@ $ECHO " ok" | @@ -110,8 +110,8 @@ $ECHO " ok" | ||
| 110 | # Test cssens | 110 | # Test cssens |
| 111 | # =========== | 111 | # =========== |
| 112 | $ECHO -n "Test cssens: " | 112 | $ECHO -n "Test cssens: " |
| 113 | -chmod +x @abs_top_srcdir@/scripts/cssens.py | ||
| 114 | -@abs_top_srcdir@/scripts/cssens.py \ | 113 | +chmod +x @abs_top_srcdir@/cscripts/cssens.py |
| 114 | +@abs_top_srcdir@/cscripts/cssens.py \ | ||
| 115 | inmodel="data/crab.xml" \ | 115 | inmodel="data/crab.xml" \ |
| 116 | srcname="Crab" \ | 116 | srcname="Crab" \ |
| 117 | caldb="irf" \ | 117 | caldb="irf" \ |
| @@ -136,8 +136,8 @@ $ECHO " ok" | @@ -136,8 +136,8 @@ $ECHO " ok" | ||
| 136 | # Test cstsdist | 136 | # Test cstsdist |
| 137 | # ============= | 137 | # ============= |
| 138 | $ECHO -n "Test cstsdist: " | 138 | $ECHO -n "Test cstsdist: " |
| 139 | -chmod +x @abs_top_srcdir@/scripts/cstsdist.py | ||
| 140 | -@abs_top_srcdir@/scripts/cstsdist.py \ | 139 | +chmod +x @abs_top_srcdir@/cscripts/cstsdist.py |
| 140 | +@abs_top_srcdir@/cscripts/cstsdist.py \ | ||
| 141 | inmodel="data/crab.xml" \ | 141 | inmodel="data/crab.xml" \ |
| 142 | srcname="Crab" \ | 142 | srcname="Crab" \ |
| 143 | outfile="ts.dat" \ | 143 | outfile="ts.dat" \ |
| @@ -168,8 +168,8 @@ $ECHO " ok" | @@ -168,8 +168,8 @@ $ECHO " ok" | ||
| 168 | # Test csresmap | 168 | # Test csresmap |
| 169 | # ============= | 169 | # ============= |
| 170 | $ECHO -n "Test csresmap: " | 170 | $ECHO -n "Test csresmap: " |
| 171 | -chmod +x @abs_top_srcdir@/scripts/csresmap.py | ||
| 172 | -@abs_top_srcdir@/scripts/csresmap.py \ | 171 | +chmod +x @abs_top_srcdir@/cscripts/csresmap.py |
| 172 | +@abs_top_srcdir@/cscripts/csresmap.py \ | ||
| 173 | inobs="data/crab_events.fits" \ | 173 | inobs="data/crab_events.fits" \ |
| 174 | outmap="resmap.fits" \ | 174 | outmap="resmap.fits" \ |
| 175 | inmodel="data/crab.xml" \ | 175 | inmodel="data/crab.xml" \ |
| @@ -199,8 +199,8 @@ $ECHO " ok" | @@ -199,8 +199,8 @@ $ECHO " ok" | ||
| 199 | # Test csspec (unbinned) | 199 | # Test csspec (unbinned) |
| 200 | # ===================== | 200 | # ===================== |
| 201 | $ECHO -n "Test csspec (unbinned): " | 201 | $ECHO -n "Test csspec (unbinned): " |
| 202 | -chmod +x @abs_top_srcdir@/scripts/csspec.py | ||
| 203 | -@abs_top_srcdir@/scripts/csspec.py \ | 202 | +chmod +x @abs_top_srcdir@/cscripts/csspec.py |
| 203 | +@abs_top_srcdir@/cscripts/csspec.py \ | ||
| 204 | inobs="data/crab_events.fits" \ | 204 | inobs="data/crab_events.fits" \ |
| 205 | inmodel="data/crab.xml" \ | 205 | inmodel="data/crab.xml" \ |
| 206 | caldb="irf" \ | 206 | caldb="irf" \ |
| @@ -226,8 +226,8 @@ $ECHO " ok" | @@ -226,8 +226,8 @@ $ECHO " ok" | ||
| 226 | # Test csspec (binned) | 226 | # Test csspec (binned) |
| 227 | # ==================== | 227 | # ==================== |
| 228 | $ECHO -n "Test csspec (binned): " | 228 | $ECHO -n "Test csspec (binned): " |
| 229 | -chmod +x @abs_top_srcdir@/scripts/csspec.py | ||
| 230 | -@abs_top_srcdir@/scripts/csspec.py \ | 229 | +chmod +x @abs_top_srcdir@/cscripts/csspec.py |
| 230 | +@abs_top_srcdir@/cscripts/csspec.py \ | ||
| 231 | inobs="data/crab_events.fits" \ | 231 | inobs="data/crab_events.fits" \ |
| 232 | inmodel="data/crab.xml" \ | 232 | inmodel="data/crab.xml" \ |
| 233 | caldb="irf" \ | 233 | caldb="irf" \ |
| @@ -261,8 +261,8 @@ $ECHO " ok" | @@ -261,8 +261,8 @@ $ECHO " ok" | ||
| 261 | # Test cslightcrv (unbinned) | 261 | # Test cslightcrv (unbinned) |
| 262 | # ========================== | 262 | # ========================== |
| 263 | $ECHO -n "Test cslightcrv (unbinned): " | 263 | $ECHO -n "Test cslightcrv (unbinned): " |
| 264 | -chmod +x @abs_top_srcdir@/scripts/cslightcrv.py | ||
| 265 | -@abs_top_srcdir@/scripts/cslightcrv.py \ | 264 | +chmod +x @abs_top_srcdir@/cscripts/cslightcrv.py |
| 265 | +@abs_top_srcdir@/cscripts/cslightcrv.py \ | ||
| 266 | inobs="data/crab_events.fits" \ | 266 | inobs="data/crab_events.fits" \ |
| 267 | inmodel="data/crab.xml" \ | 267 | inmodel="data/crab.xml" \ |
| 268 | srcname="Crab" \ | 268 | srcname="Crab" \ |
| @@ -291,8 +291,8 @@ $ECHO " ok" | @@ -291,8 +291,8 @@ $ECHO " ok" | ||
| 291 | # Test cslightcrv (binned) | 291 | # Test cslightcrv (binned) |
| 292 | # ======================== | 292 | # ======================== |
| 293 | $ECHO -n "Test cslightcrv (binned): " | 293 | $ECHO -n "Test cslightcrv (binned): " |
| 294 | -chmod +x @abs_top_srcdir@/scripts/cslightcrv.py | ||
| 295 | -@abs_top_srcdir@/scripts/cslightcrv.py \ | 294 | +chmod +x @abs_top_srcdir@/cscripts/cslightcrv.py |
| 295 | +@abs_top_srcdir@/cscripts/cslightcrv.py \ | ||
| 296 | inobs="data/crab_events.fits" \ | 296 | inobs="data/crab_events.fits" \ |
| 297 | inmodel="data/crab.xml" \ | 297 | inmodel="data/crab.xml" \ |
| 298 | srcname="Crab" \ | 298 | srcname="Crab" \ |