From af771e6093f4cbbb528e99c98b07a47dad47d280 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 12 Sep 2018 16:59:29 +0200 Subject: [PATCH] Do no longer use a finer energy binning for the background cube in obsutils.get_stacked_response(). --- cscripts/obsutils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cscripts/obsutils.py b/cscripts/obsutils.py index 5baebc7..f167367 100755 --- a/cscripts/obsutils.py +++ b/cscripts/obsutils.py @@ -633,7 +633,9 @@ def get_stacked_response(obs, xref, yref, binsz=0.05, nxpix=200, nypix=200, psfcube.logFileOpen() psfcube.run() - # Create background cube + # Create background cube. Note that we use the same energy binning as + # for the counts cube since no interpolation should be actually done + # for the background cube. bkgcube = ctools.ctbkgcube(obs) bkgcube['incube'] = 'NONE' bkgcube['usepnt'] = usepnt @@ -641,7 +643,7 @@ def get_stacked_response(obs, xref, yref, binsz=0.05, nxpix=200, nypix=200, bkgcube['binsz'] = binsz bkgcube['nxpix'] = nxpix bkgcube['nypix'] = nypix - bkgcube['enumbins'] = _enumbins + bkgcube['enumbins'] = enumbins bkgcube['emin'] = emin bkgcube['emax'] = emax bkgcube['coordsys'] = coordsys -- libgit2 0.21.4