Commit 1ea3e00ca27aae7c5943b41ae56f101c9ef1dedf

Authored by Jürgen Knödlseder
2 parents bca8b3d8 c385c948

Merge branch 'release' into integration

# Conflicts:
#	Makefile.am
#	README.md
#	configure.ac
#	ctools.pc.in
#	dev/conda.recipe/meta.yaml.in
#	doc/Doxyfile
#	doc/source/conf.py
#	sonar-project.properties
Makefile.am
@@ -33,9 +33,9 @@ pkgconfig_DATA = ctools.pc @@ -33,9 +33,9 @@ pkgconfig_DATA = ctools.pc
33 33
34 # Conda activate directory 34 # Conda activate directory
35 condaactivatedir = $(sysconfdir)/conda/activate.d 35 condaactivatedir = $(sysconfdir)/conda/activate.d
36 -condaactivate_DATA = dev/ctools-activate.sh 36 +condaactivate_DATA = dev/01-ctools-activate.sh
37 condadeactivatedir = $(sysconfdir)/conda/deactivate.d 37 condadeactivatedir = $(sysconfdir)/conda/deactivate.d
38 -condadeactivate_DATA = dev/ctools-deactivate.sh 38 +condadeactivate_DATA = dev/00-ctools-deactivate.sh
39 39
40 # Manual pages to install 40 # Manual pages to install
41 man_MANS = 41 man_MANS =
@@ -54,7 +54,7 @@ docdir = ${datadir}/doc/${PACKAGE} @@ -54,7 +54,7 @@ docdir = ${datadir}/doc/${PACKAGE}
54 EXTRA_DIST = README.md \ 54 EXTRA_DIST = README.md \
55 doc/Doxyfile doc/source \ 55 doc/Doxyfile doc/source \
56 dev/testreport.py \ 56 dev/testreport.py \
57 - dev/ctools-activate.sh dev/ctools-deactivate.sh \ 57 + dev/01-ctools-activate.sh dev/00-ctools-deactivate.sh \
58 dev/conda.recipe/build.sh \ 58 dev/conda.recipe/build.sh \
59 dev/conda.recipe/conda_build_config.yaml \ 59 dev/conda.recipe/conda_build_config.yaml \
60 dev/conda.recipe/meta.yaml.in 60 dev/conda.recipe/meta.yaml.in
ctools.pc.in
@@ -8,7 +8,7 @@ Description: CTA science analysis tools @@ -8,7 +8,7 @@ Description: CTA science analysis tools
8 URL: http://cta.irap.omp.eu/ctools 8 URL: http://cta.irap.omp.eu/ctools
9 Version: @VERSION@ 9 Version: @VERSION@
10 Requires: 10 Requires:
11 -Requires.private: gammalib >= 1.5.0.dev1 11 +Requires.private: gammalib == 1.5.0.dev1
12 Conflicts: 12 Conflicts:
13 Cflags: -I${includedir}/ctools @OPENMP_CXXFLAGS@ 13 Cflags: -I${includedir}/ctools @OPENMP_CXXFLAGS@
14 Libs: -L${libdir} -lctools 14 Libs: -L${libdir} -lctools
dev/00-ctools-deactivate.sh 0 → 100644
  1 +#!/bin/sh
  2 +
  3 +unset CTOOLS
  4 +unset CALDB
dev/01-ctools-activate.sh 0 → 100644
  1 +#!/bin/sh
  2 +
  3 +export CTOOLS=${CONDA_PREFIX}
  4 +source ${CTOOLS}/bin/ctools-init.sh
  5 +unset PYTHONPATH
dev/conda.recipe/meta.yaml.in
1 package: 1 package:
2 name: ctools 2 name: ctools
3 version: "@VERSION@" 3 version: "@VERSION@"
4 -  
5 4
6 source: 5 source:
7 fn: ctools-@VERSION@.tar.gz 6 fn: ctools-@VERSION@.tar.gz
8 url: http://cta.irap.omp.eu/ctools/releases/ctools/ctools-@VERSION@.tar.gz 7 url: http://cta.irap.omp.eu/ctools/releases/ctools/ctools-@VERSION@.tar.gz
9 #md5: a2751da55f7b97d48db57156e8096792 8 #md5: a2751da55f7b97d48db57156e8096792
10 - 9 +
11 build: 10 build:
12 number: 1 11 number: 1
13 binary_relocation: True 12 binary_relocation: True
14 detect_binary_files_with_prefix: True 13 detect_binary_files_with_prefix: True
15 - 14 +
16 requirements: 15 requirements:
17 build: 16 build:
18 - python 17 - python
19 - setuptools 18 - setuptools
20 - swig 19 - swig
21 - - gammalib >=1.5.0.dev1 20 + - gammalib ==1.5.0.dev1
22 run: 21 run:
23 - python 22 - python
24 - - gammalib >=1.5.0.dev1 23 + - gammalib ==1.5.0.dev1
25 24
26 about: 25 about:
27 home: http://cta.irap.omp.eu/ctools 26 home: http://cta.irap.omp.eu/ctools
doc/source/admin/download.rst
@@ -13,7 +13,7 @@ bugs. @@ -13,7 +13,7 @@ bugs.
13 Releases 13 Releases
14 -------- 14 --------
15 15
16 -The latest ctools release is ``ctools-1.4.2`` (22 August 2017). 16 +The latest ctools release is ``ctools-1.4.3`` (31 October 2017).
17 17
18 Below a table of ctools releases. Please read the :ref:`sec_release` to 18 Below a table of ctools releases. Please read the :ref:`sec_release` to
19 learn more about new features and corrected bugs in a given release. 19 learn more about new features and corrected bugs in a given release.
@@ -31,6 +31,9 @@ learn more about new features and corrected bugs in a given release. @@ -31,6 +31,9 @@ learn more about new features and corrected bugs in a given release.
31 * - ctools 31 * - ctools
32 - gammalib 32 - gammalib
33 - Mac OS X package 33 - Mac OS X package
  34 + * - `1.4.3 <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.3.tar.gz>`_
  35 + - `1.4.3 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-1.4.3.tar.gz>`_
  36 + - `ctools-1.4.3-macosx10.7.dmg <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.3-macosx10.7.dmg>`_
34 * - `1.4.2 <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.2.tar.gz>`_ 37 * - `1.4.2 <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.2.tar.gz>`_
35 - `1.4.2 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-1.4.2.tar.gz>`_ 38 - `1.4.2 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-1.4.2.tar.gz>`_
36 - `ctools-1.4.2-macosx10.7.dmg <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.2-macosx10.7.dmg>`_ 39 - `ctools-1.4.2-macosx10.7.dmg <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.2-macosx10.7.dmg>`_
doc/source/admin/release_history/1.4.3.rst 0 → 100644
  1 +.. _1.4.3:
  2 +
  3 +ctools 1.4.3 release (31 October 2017)
  4 +======================================
  5 +
  6 +Overview
  7 +--------
  8 +
  9 +ctools 1.4.3 is a bug fix for ctools release 1.4.
  10 +
  11 +Except of a change in the documentation the code is identical to release 1.4.
doc/source/admin/release_history/index.rst
@@ -20,6 +20,7 @@ Bug fix releases: @@ -20,6 +20,7 @@ Bug fix releases:
20 .. toctree:: 20 .. toctree::
21 :maxdepth: 1 21 :maxdepth: 1
22 22
  23 + ctools 1.4.3 <1.4.3>
23 ctools 1.4.2 <1.4.2> 24 ctools 1.4.2 <1.4.2>
24 ctools 1.4.1 <1.4.1> 25 ctools 1.4.1 <1.4.1>
25 ctools 1.3.1 <1.3.1> 26 ctools 1.3.1 <1.3.1>
doc/source/users/tutorials/1dc/data_organisation.rst
@@ -134,44 +134,44 @@ have been simulated (see figure below). @@ -134,44 +134,44 @@ have been simulated (see figure below).
134 :align: center 134 :align: center
135 135
136 *Header of an event list* 136 *Header of an event list*
137 -  
138 -  
139 -.. warning::  
140 - Only the following header keywords in the ``EVENTS`` table have meaningful  
141 - values:  
142 -  
143 - * ``DSTYPx`` - Data sub-space type  
144 - * ``DSUNIx`` - Data sub-space unit  
145 - * ``DSVALx`` - Data sub-space value  
146 - * ``DSREFx`` - Data sub-space reference  
147 - * ``NDSKEYS`` - Number of data sub-space keys  
148 - * ``NMCIDS`` - Number of Monte Carlo identifiers  
149 - * ``MIDxxxxx`` - Monte Carlo identifier  
150 - * ``MMNxxxxx`` - Model name for Monte Carlo identifier  
151 - * ``OBS_ID`` - Observation identifier  
152 - * ``DATE_OBS`` - start date of observation (UTC)  
153 - * ``TIME_OBS`` - start time of observation (UTC)  
154 - * ``DATE_END`` - end date of observation (UTC)  
155 - * ``TIME_END`` - end time of observation (UTC)  
156 - * ``TSTART`` - start time of observation, counted from time reference (s)  
157 - * ``TSTOP`` - stop time of observation, counted from time reference (s)  
158 - * ``MJDREFI`` - integer part of time reference MJD (days)  
159 - * ``MJDREFF`` - fractional part of time reference MJD (days)  
160 - * ``TIMEUNIT`` - time unit  
161 - * ``TIMESYS`` - time system  
162 - * ``TIMEREF`` - time reference  
163 - * ``TELAPSE`` - elapsed time (s)  
164 - * ``ONTIME`` - exposure time (s)  
165 - * ``LIVETIME`` - livetime (s)  
166 - * ``DEADC`` - deadtime correction factor, livetime / exposure time  
167 - * ``TIMEDEL`` - time resolution  
168 - * ``RA_PNT`` - Right Ascension of pointing direction (deg)  
169 - * ``DEC_PNT`` - Declination of pointing direction (deg)  
170 - * ``RADECSYS`` - Coordinate system  
171 - * ``EQUINOX`` - Coordinate epoch  
172 -  
173 - All remaining header keywords have arbitrary values and should not be  
174 - used for the analysis. 137 +..
  138 +
  139 + .. warning::
  140 + Only the following header keywords in the ``EVENTS`` table have meaningful
  141 + values:
  142 +
  143 + * ``DSTYPx`` - Data sub-space type
  144 + * ``DSUNIx`` - Data sub-space unit
  145 + * ``DSVALx`` - Data sub-space value
  146 + * ``DSREFx`` - Data sub-space reference
  147 + * ``NDSKEYS`` - Number of data sub-space keys
  148 + * ``NMCIDS`` - Number of Monte Carlo identifiers
  149 + * ``MIDxxxxx`` - Monte Carlo identifier
  150 + * ``MMNxxxxx`` - Model name for Monte Carlo identifier
  151 + * ``OBS_ID`` - Observation identifier
  152 + * ``DATE_OBS`` - start date of observation (UTC)
  153 + * ``TIME_OBS`` - start time of observation (UTC)
  154 + * ``DATE_END`` - end date of observation (UTC)
  155 + * ``TIME_END`` - end time of observation (UTC)
  156 + * ``TSTART`` - start time of observation, counted from time reference (s)
  157 + * ``TSTOP`` - stop time of observation, counted from time reference (s)
  158 + * ``MJDREFI`` - integer part of time reference MJD (days)
  159 + * ``MJDREFF`` - fractional part of time reference MJD (days)
  160 + * ``TIMEUNIT`` - time unit
  161 + * ``TIMESYS`` - time system
  162 + * ``TIMEREF`` - time reference
  163 + * ``TELAPSE`` - elapsed time (s)
  164 + * ``ONTIME`` - exposure time (s)
  165 + * ``LIVETIME`` - livetime (s)
  166 + * ``DEADC`` - deadtime correction factor, livetime / exposure time
  167 + * ``TIMEDEL`` - time resolution
  168 + * ``RA_PNT`` - Right Ascension of pointing direction (deg)
  169 + * ``DEC_PNT`` - Declination of pointing direction (deg)
  170 + * ``RADECSYS`` - Coordinate system
  171 + * ``EQUINOX`` - Coordinate epoch
  172 +
  173 + All remaining header keywords have arbitrary values and should not be
  174 + used for the analysis.
175 175
176 Each row of the ``EVENTS`` table corresponds to a single event. 176 Each row of the ``EVENTS`` table corresponds to a single event.
177 Each event is characterised by 177 Each event is characterised by
@@ -203,10 +203,11 @@ An example of an ``EVENTS`` table is shown below. @@ -203,10 +203,11 @@ An example of an ``EVENTS`` table is shown below.
203 :align: center 203 :align: center
204 204
205 *Content of an event list* 205 *Content of an event list*
  206 +..
206 207
207 -.. warning::  
208 - The time stamps in the ``TIME`` column are **not** necessarily in ascending  
209 - order. 208 + .. warning::
  209 + The time stamps in the ``TIME`` column are **not** necessarily in ascending
  210 + order.
210 211
211 212
212 Observation Definition Files 213 Observation Definition Files
@@ -234,10 +235,10 @@ identical. @@ -234,10 +235,10 @@ identical.
234 The other files in the folder are ASCII and FITS files containing spectral, 235 The other files in the folder are ASCII and FITS files containing spectral,
235 temporal and spatial information that was used in the simulations. 236 temporal and spatial information that was used in the simulations.
236 237
237 -.. warning::  
238 - The ASCII and FITS files should always reside in the same folder as the  
239 - :ref:`model definition XML files <glossary_moddef>`  
240 - since the latter reference the former. 238 + .. warning::
  239 + The ASCII and FITS files should always reside in the same folder as the
  240 + :ref:`model definition XML files <glossary_moddef>`
  241 + since the latter reference the former.
241 242
242 243
243 244
doc/source/users/tutorials/1dc/getting_data.rst
@@ -36,11 +36,31 @@ line by typing: @@ -36,11 +36,31 @@ line by typing:
36 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/agn.tar.gz --user=<user> --ask-password 36 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/agn.tar.gz --user=<user> --ask-password
37 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/caldb.tar.gz --user=<user> --ask-password 37 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/caldb.tar.gz --user=<user> --ask-password
38 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/models.tar.gz --user=<user> --ask-password 38 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/models.tar.gz --user=<user> --ask-password
  39 +..
39 40
40 -.. warning::  
41 - ``<user>`` needs to be replaced by your CTA user name.  
42 - Don't type the ``$`` symbol. It indicates that a command should be typed  
43 - on the command line of your terminal. 41 + .. warning::
  42 + ``<user>`` needs to be replaced by your CTA user name.
  43 + Don't type the ``$`` symbol. It indicates that a command should be typed
  44 + on the command line of your terminal.
  45 +
  46 + .. note::
  47 + You may need to add the ``--no-check-certificate`` option to download the
  48 + files using ``wget``.
  49 +
  50 + .. note::
  51 + In case you encounter the following error message
  52 +
  53 +
  54 + .. code-block:: bash
  55 +
  56 + HTTP request sent, awaiting response... 401 Unauthorized
  57 + Authentication selected: Basic realm="ownCloud"
  58 + Reusing existing connection to owncloud.cta-observatory.org:443.
  59 + HTTP request sent, awaiting response... 404 Not Found
  60 + 2017-06-06 14:43:33 ERROR 404: Not Found.
  61 +
  62 + or any other problems with the download, please contact
  63 + sstober@cta-observatory.org.
44 64
45 To make sure that you have the relevant files you may check the MD5 checksums 65 To make sure that you have the relevant files you may check the MD5 checksums
46 after downloading by typing for example 66 after downloading by typing for example
@@ -94,11 +114,12 @@ Before continuing, please set the following environment variables: @@ -94,11 +114,12 @@ Before continuing, please set the following environment variables:
94 114
95 $ export CTADATA=$PWD/1dc 115 $ export CTADATA=$PWD/1dc
96 $ export CALDB=$CTADATA/caldb 116 $ export CALDB=$CTADATA/caldb
97 -  
98 -.. note::  
99 - You may consider adding the ``CTADATA`` and ``CALDB`` environment variables  
100 - to your ``.bashrc`` file (or equivalent) so that your analysis environment  
101 - for the  
102 - :ref:`first CTA Data Challenge <glossary_1dc>`  
103 - is always setup correctly. 117 +..
  118 +
  119 + .. note::
  120 + You may consider adding the ``CTADATA`` and ``CALDB`` environment variables
  121 + to your ``.bashrc`` file (or equivalent) so that your analysis environment
  122 + for the
  123 + :ref:`first CTA Data Challenge <glossary_1dc>`
  124 + is always setup correctly.
104 125
doc/source/users/tutorials/1dc/getting_tools.rst
@@ -27,13 +27,13 @@ After downloading, configure GammaLib and ctools as follows: @@ -27,13 +27,13 @@ After downloading, configure GammaLib and ctools as follows:
27 Have a look at :ref:`getting the ctools <sec_install>` if you need more 27 Have a look at :ref:`getting the ctools <sec_install>` if you need more
28 information about the installation and configuration process. 28 information about the installation and configuration process.
29 29
30 -.. note::  
31 - You may consider adding the ``GAMMALIB`` and ``CTOOLS`` environment variables  
32 - as well as the sourcing of the configuration scripts to your ``.bashrc`` file  
33 - (or equivalent) so that your analysis environment  
34 - for the  
35 - :ref:`first CTA Data Challenge <glossary_1dc>`  
36 - is always setup correctly. 30 + .. note::
  31 + You may consider adding the ``GAMMALIB`` and ``CTOOLS`` environment variables
  32 + as well as the sourcing of the configuration scripts to your ``.bashrc`` file
  33 + (or equivalent) so that your analysis environment
  34 + for the
  35 + :ref:`first CTA Data Challenge <glossary_1dc>`
  36 + is always setup correctly.
37 37
38 38
39 39