Commit 1bc34ab2596cd8d41b141c71c92cdf39dcff2e9e

Authored by Jürgen Knödlseder
2 parents aaf595a0 b30a3d51

Merge branch 'integration' into devel

.gitignore
@@ -37,6 +37,7 @@ compile @@ -37,6 +37,7 @@ compile
37 stamp-h1 37 stamp-h1
38 depcomp 38 depcomp
39 test-driver 39 test-driver
  40 +testconf.sh
40 41
41 doc/html/doxygen 42 doc/html/doxygen
42 doc/man 43 doc/man
ChangeLog
  1 +2014-01-21 Juergen Knoedlseder <jurgen.knodlseder@irap.omp.eu>
  2 +
  3 + * Bug fix Version 0.7.1 released
  4 + ================================
  5 +
  6 + Added missing hyphens in pfiles synchronisation section (#1091)
  7 + Add configuration test script (#1091)
  8 +
  9 +
1 2014-01-18 Juergen Knoedlseder <jurgen.knodlseder@irap.omp.eu> 10 2014-01-18 Juergen Knoedlseder <jurgen.knodlseder@irap.omp.eu>
2 11
3 * Version 0.7.0 released 12 * Version 0.7.0 released
1 -New Features and Important Changes in ctools 00-07-00 1 +New Features and Important Changes in ctools 00-07-01
2 2
3 Author(s) : Juergen Knoedlseder 3 Author(s) : Juergen Knoedlseder
4 4
5 -18 January 2014 5 +21 January 2014
6 6
7 7
8 1. Introduction 8 1. Introduction
@@ -10,17 +10,16 @@ Author(s) : Juergen Knoedlseder @@ -10,17 +10,16 @@ Author(s) : Juergen Knoedlseder
10 This document briefly summarizes executable by executable the most 10 This document briefly summarizes executable by executable the most
11 important changes made since the last release of ctools. 11 important changes made since the last release of ctools.
12 12
13 -With version 00-08-00, GammaLib has undergone a major interface  
14 -change. The adaption of ctools to this interface changed will not be  
15 -detailed below as they do not impact the functionalities.  
16 -  
17 13
18 2. Configuration 14 2. Configuration
19 ----------------- 15 -----------------
20 -The configuration script now updates any parameter files in the users  
21 -pfiles directory that is older than the system parameter files. This  
22 -corrects for problems that arose when parameter files in the pfiles  
23 -directory did not include all parameters necessary for the latest version. 16 +Some hyphens were missing in the configuration script when synchronising
  17 +the user and system parameter files. This led to an error message on the
  18 +console, but did not impact the proper configuration. Hyphens have now
  19 +been added as needed.
  20 +
  21 +The configuration test script testconf.sh has been added to allow testing
  22 +configuration script during continous integration.
24 23
25 24
26 3. Python interface 25 3. Python interface
@@ -30,20 +29,7 @@ None @@ -30,20 +29,7 @@ None
30 29
31 4. ctobssim - CTA observation simulation 30 4. ctobssim - CTA observation simulation
32 ---------------------------------------- 31 ----------------------------------------
33 -The application now checks for each event whether it lies within the  
34 -circular region of interested defined by the region centre (parameters  
35 -ra and dec) and region radius (parameter rad). A margin of 0.5 has been  
36 -added internally to the radius so that also sources at the edge but  
37 -slightly outside of the ROI will be simulated correctly.  
38 -  
39 -ctobssim now supports any kind of data space model for background  
40 -simulations, using the abstract mc() method that is now available  
41 -in the GModelData base class.  
42 -  
43 -The time slice duration is now computed from the source flux and  
44 -set so that no more than 1000000 photons will be simulated in a  
45 -given slice. This limits the memory requirements during simulations  
46 -to about 100 MB, yet saving may still need more memory. 32 +None
47 33
48 34
49 5. ctselect - CTA event selection 35 5. ctselect - CTA event selection
@@ -53,15 +39,7 @@ None @@ -53,15 +39,7 @@ None
53 39
54 6. ctbin - CTA event binning 40 6. ctbin - CTA event binning
55 ---------------------------- 41 ----------------------------
56 -The ebinalg parameter is now used to specify the type of binning.  
57 -Linear (LIN) binning and binning retrieved from a FITS file (FILE)  
58 -is now supported. For the latter, an extension named EBOUNDS or  
59 -ENERGYBINS is expected.  
60 -  
61 -The ebinalg and ebinfile parameters are now automatic.  
62 -  
63 -Counts maps generated by ctbin now have the longitude increasing  
64 -towards the left. 42 +None
65 43
66 44
67 7. ctlike - CTA maximum likelihood fitting 45 7. ctlike - CTA maximum likelihood fitting
@@ -71,14 +49,12 @@ None @@ -71,14 +49,12 @@ None
71 49
72 8. ctskymap - CTA sky mapping 50 8. ctskymap - CTA sky mapping
73 ----------------------------- 51 -----------------------------
74 -Skymaps generated by ctskymap now have the longitude increasing  
75 -towards the left. 52 +None
76 53
77 54
78 9. ctmodel - CTA counts map modelling 55 9. ctmodel - CTA counts map modelling
79 ------------------------------------- 56 -------------------------------------
80 -Model maps generated by ctmodel now have the longitude increasing  
81 -towards the left. 57 +None
82 58
83 59
84 10. Examples 60 10. Examples
configure.ac
@@ -891,8 +891,10 @@ AC_CONFIG_FILES([Makefile @@ -891,8 +891,10 @@ AC_CONFIG_FILES([Makefile
891 models/Makefile 891 models/Makefile
892 examples/Makefile 892 examples/Makefile
893 scripts/Makefile 893 scripts/Makefile
894 - ctools.pc],  
895 - [if test -f test/test_cscripts.sh; then chmod +x test/test_cscripts.sh; fi]) 894 + ctools.pc
  895 + testconf.sh],
  896 + [if test -f test/test_cscripts.sh; then chmod +x test/test_cscripts.sh; fi;
  897 + if test -f testconf.sh; then chmod +x testconf.sh; fi])
896 AC_OUTPUT 898 AC_OUTPUT
897 899
898 900
src/ctools-setup.in
@@ -173,7 +173,8 @@ fi @@ -173,7 +173,8 @@ fi
173 # Set MANPATH 173 # Set MANPATH
174 # ============== 174 # ==============
175 if [ "x$MANPATH" = x ]; then 175 if [ "x$MANPATH" = x ]; then
176 - MANPATH="$man_dir:$(manpath)" 176 + manpath=${manpath:-}
  177 + MANPATH="$man_dir:${manpath}"
177 else 178 else
178 MANPATH=`echo ":$MANPATH:" | \ 179 MANPATH=`echo ":$MANPATH:" | \
179 sed "s%:$man_dir:%:%g" | sed "s%::*$%%"` 180 sed "s%:$man_dir:%:%g" | sed "s%::*$%%"`
test/test_cscripts.sh.in
@@ -49,7 +49,7 @@ export PFILES=pfiles @@ -49,7 +49,7 @@ export PFILES=pfiles
49 # 49 #
50 # Test cspull 50 # Test cspull
51 # =========== 51 # ===========
52 -$ECHO -n "Test cspull: " 52 +$ECHO @ECHO_N@ "Test cspull: "
53 chmod +x @abs_top_srcdir@/scripts/cspull.py 53 chmod +x @abs_top_srcdir@/scripts/cspull.py
54 @abs_top_srcdir@/scripts/cspull.py \ 54 @abs_top_srcdir@/scripts/cspull.py \
55 srcmdl="data/crab.xml" \ 55 srcmdl="data/crab.xml" \
@@ -67,10 +67,10 @@ chmod +x @abs_top_srcdir@/scripts/cspull.py @@ -67,10 +67,10 @@ chmod +x @abs_top_srcdir@/scripts/cspull.py
67 rad=5.0 \ 67 rad=5.0 \
68 npix=200 \ 68 npix=200 \
69 binsz=0.05 > cspull.log 69 binsz=0.05 > cspull.log
70 -$ECHO -n "." 70 +$ECHO @ECHO_N@ "."
71 if [ -s "pull.dat" ] 71 if [ -s "pull.dat" ]
72 then 72 then
73 - $ECHO -n "." 73 + $ECHO @ECHO_N@ "."
74 else 74 else
75 $ECHO " pull.dat file is not valid" 75 $ECHO " pull.dat file is not valid"
76 exit 1 76 exit 1
@@ -81,7 +81,7 @@ $ECHO &quot; ok&quot; @@ -81,7 +81,7 @@ $ECHO &quot; ok&quot;
81 # 81 #
82 # Test cssens 82 # Test cssens
83 # =========== 83 # ===========
84 -#echo -n "Test cssens: " 84 +#echo @ECHO_N@ "Test cssens: "
85 #chmod +x @abs_top_srcdir@/scripts/cssens.py 85 #chmod +x @abs_top_srcdir@/scripts/cssens.py
86 #@abs_top_srcdir@/scripts/cssens.py \ 86 #@abs_top_srcdir@/scripts/cssens.py \
87 # duration=3600.0 \ 87 # duration=3600.0 \
@@ -91,10 +91,10 @@ $ECHO &quot; ok&quot; @@ -91,10 +91,10 @@ $ECHO &quot; ok&quot;
91 # offset="0.0" \ 91 # offset="0.0" \
92 # bkg="data/bkg_dummy.txt" \ 92 # bkg="data/bkg_dummy.txt" \
93 # rad=5.0 > cssens.log 93 # rad=5.0 > cssens.log
94 -#echo -n "." 94 +#echo @ECHO_N@ "."
95 #if [ -s "sensitivity.dat" ] 95 #if [ -s "sensitivity.dat" ]
96 #then 96 #then
97 -# echo -n "." 97 +# echo @ECHO_N@ "."
98 #else 98 #else
99 # echo " sensitivity.dat file is not valid" 99 # echo " sensitivity.dat file is not valid"
100 # exit 1 100 # exit 1
@@ -105,7 +105,7 @@ $ECHO &quot; ok&quot; @@ -105,7 +105,7 @@ $ECHO &quot; ok&quot;
105 # 105 #
106 # Test cstsdist 106 # Test cstsdist
107 # ============= 107 # =============
108 -$ECHO -n "Test cstsdist: " 108 +$ECHO @ECHO_N@ "Test cstsdist: "
109 chmod +x @abs_top_srcdir@/scripts/cstsdist.py 109 chmod +x @abs_top_srcdir@/scripts/cstsdist.py
110 @abs_top_srcdir@/scripts/cstsdist.py \ 110 @abs_top_srcdir@/scripts/cstsdist.py \
111 outfile="ts.dat" \ 111 outfile="ts.dat" \
@@ -122,10 +122,10 @@ chmod +x @abs_top_srcdir@/scripts/cstsdist.py @@ -122,10 +122,10 @@ chmod +x @abs_top_srcdir@/scripts/cstsdist.py
122 rad=5.0 \ 122 rad=5.0 \
123 npix=200 \ 123 npix=200 \
124 binsz=0.05 > cstsdist.log 124 binsz=0.05 > cstsdist.log
125 -$ECHO -n "." 125 +$ECHO @ECHO_N@ "."
126 if [ -s "ts.dat" ] 126 if [ -s "ts.dat" ]
127 then 127 then
128 - $ECHO -n "." 128 + $ECHO @ECHO_N@ "."
129 else 129 else
130 $ECHO " ts.dat file is not valid" 130 $ECHO " ts.dat file is not valid"
131 exit 1 131 exit 1
testconf.sh.in 0 → 100755
  1 +#!/bin/sh
  2 +# =====================================================================
  3 +# Test ctools configuration script (used for continuous integration;
  4 +# assumes that ctools have been installed)
  5 +#
  6 +# Copyright (C) 2014 Juergen Knoedlseder
  7 +#
  8 +# This program is free software: you can redistribute it and/or modify
  9 +# it under the terms of the GNU General Public License as published by
  10 +# the Free Software Foundation, either version 3 of the License, or
  11 +# (at your option) any later version.
  12 +#
  13 +# This program is distributed in the hope that it will be useful,
  14 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  15 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16 +# GNU General Public License for more details.
  17 +#
  18 +# You should have received a copy of the GNU General Public License
  19 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  20 +# =====================================================================
  21 +#
  22 +# Exit on any error
  23 +# =================
  24 +set -e
  25 +
  26 +#
  27 +# Set fixed parameters
  28 +# ====================
  29 +test_dir="home"
  30 +
  31 +#
  32 +# Set parameters
  33 +# ==============
  34 +prefix="@prefix@"
  35 +
  36 +#
  37 +# Save current working directory
  38 +# ==============================
  39 +base=$PWD
  40 +
  41 +#
  42 +# Create test directory
  43 +# =====================
  44 +@MKDIR_P@ "$test_dir"
  45 +cd "$test_dir"
  46 +
  47 +#
  48 +# Configure ctools
  49 +# ================
  50 +export CTOOLS="$prefix"
  51 +. $CTOOLS/bin/ctools-init.sh > config.log 2>&1
  52 +output=`cat config.log`
  53 +if [ "x$output" != x ]; then
  54 + echo "*** Configuration script was not silent ***"
  55 + echo "$output"
  56 + exit 1
  57 +fi
  58 +
  59 +#
  60 +# Signal completion
  61 +# =================
  62 +echo "Configuration test successful."