From e72963ae87feef4a87393acb23b344ef570c73a0 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Mon, 20 Jun 2016 14:53:38 +0200 Subject: [PATCH] Adapt to new response cube interface (#1788) --- ChangeLog | 7 ++++--- NEWS | 2 +- README | 6 +++--- configure.ac | 4 ++-- test/data/crab_bkgcube.fits.gz | Bin 49703 -> 0 bytes test/data/crab_edispcube.fits.gz | Bin 22781 -> 0 bytes test/data/crab_expcube.fits.gz | Bin 50647 -> 0 bytes test/data/crab_psfcube.fits.gz | Bin 6654 -> 0 bytes test/test_ctbkgcube.py | 2 +- 9 files changed, 11 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 01cadce..9fda938 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,22 +1,23 @@ -2016-05-27 Juergen Knoedlseder +2016-06-20 Juergen Knoedlseder * Version 1.1.0 released ======================== - Add ctools and cscripts unit tests. + Adapt to new stacked cube interface (#1788) + Add ctools and cscripts unit tests Add "bgdoversample" and "bgdinfill" parameters to csroot2caldb Add csobsdef.pntdef() method (#1771) Add ctmapcube tool (#1760) Add "seed" parameter to cspull (#1755) Add ctedispcube tool (#1724) Test and import IACT scripts only for Python 2.6+ (#1715) - Add documentation for IACT analysis (#1646) Adapt to revise GTime operators (#1714) Add publish() methods to tools producing images (#1710) Read ahead output filename in cterror (#1700) Subdivide simulation energy range in ctobssim (#1673) Delete existing events before simulation in ctobssim (#1663) Add csiactcopy script (#1661) + Add documentation for IACT analysis (#1646) ctselect allows usage of non-default events and GTI extensions (#1598) Add csworkflow workflow manager script (#1508) diff --git a/NEWS b/NEWS index 27a2ac4..02f2361 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,6 @@ New Features and Important Changes in ctools 1.1.0 -27 May 2016 +20 June 2016 Introduction diff --git a/README b/README index 38435cc..ec9ba17 100644 --- a/README +++ b/README @@ -1,8 +1,8 @@ ctools information ================== -Version: 1.1.0dev (11 January 2016) -Author: Juergen Knodlseder (jurgen.knodlseder@irap.omp.eu) -GammaLib dependency: 1.1.0dev +* Version: 1.1.0.dev1 (20 June 2016) +* Author: Juergen Knoedlseder (jurgen.knodlseder@irap.omp.eu) +* GammaLib dependency: 1.1.0.dev1 License information diff --git a/configure.ac b/configure.ac index bddd791..969ff88 100644 --- a/configure.ac +++ b/configure.ac @@ -33,8 +33,8 @@ AC_INIT([ctools], [1.1.0.dev1], [jurgen.knodlseder@irap.omp.eu], [ctools]) AC_CONFIG_SRCDIR([src/ctselect/ctselect.cpp]) AC_CONFIG_MACRO_DIR([m4]) #AM_INIT_AUTOMAKE([gnu no-dependencies]) -AM_INIT_AUTOMAKE([gnu -Wno-portability]) -#AM_INIT_AUTOMAKE([gnu -Wno-portability serial-tests]) +#AM_INIT_AUTOMAKE([gnu -Wno-portability]) +AM_INIT_AUTOMAKE([gnu -Wno-portability serial-tests]) AC_CONFIG_HEADER([config.h]) diff --git a/test/data/crab_bkgcube.fits.gz b/test/data/crab_bkgcube.fits.gz index 5ffb71d..cf320a8 100644 Binary files a/test/data/crab_bkgcube.fits.gz and b/test/data/crab_bkgcube.fits.gz differ diff --git a/test/data/crab_edispcube.fits.gz b/test/data/crab_edispcube.fits.gz index 370dbe5..3e23c99 100644 Binary files a/test/data/crab_edispcube.fits.gz and b/test/data/crab_edispcube.fits.gz differ diff --git a/test/data/crab_expcube.fits.gz b/test/data/crab_expcube.fits.gz index 83510b2..76ede76 100644 Binary files a/test/data/crab_expcube.fits.gz and b/test/data/crab_expcube.fits.gz differ diff --git a/test/data/crab_psfcube.fits.gz b/test/data/crab_psfcube.fits.gz index 27336cb..21cf2a4 100644 Binary files a/test/data/crab_psfcube.fits.gz and b/test/data/crab_psfcube.fits.gz differ diff --git a/test/test_ctbkgcube.py b/test/test_ctbkgcube.py index 3a73c23..86f8128 100755 --- a/test/test_ctbkgcube.py +++ b/test/test_ctbkgcube.py @@ -165,7 +165,7 @@ class Test(gammalib.GPythonTestSuite): result = gammalib.GCTACubeBackground(filename) # Check dimensions - self.test_value(len(result.elogmeans()), 20, 'Check for 20 energy bins') + self.test_value(len(result.energies()), 21, 'Check for 21 energy values') # Return return -- libgit2 0.21.4