From 976a9ff98eacefe2886dc6cb784df6c2c599b307 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sat, 17 Oct 2015 01:41:51 +0200 Subject: [PATCH] Avoid empty skymap in ctpsfcube (we add 1 to the number of pixels for safety) --- cscripts/csspec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cscripts/csspec.py b/cscripts/csspec.py index 541c11a..2c93855 100755 --- a/cscripts/csspec.py +++ b/cscripts/csspec.py @@ -405,8 +405,8 @@ class csspec(ctools.cscript): psfcube["xref"] = self.m_xref psfcube["yref"] = self.m_yref psfcube["binsz"] = self.m_binsz*20.0 # Slow Psf variation - psfcube["nxpix"] = self.m_nxpix/20 - psfcube["nypix"] = self.m_nypix/20 + psfcube["nxpix"] = self.m_nxpix/20+1 + psfcube["nypix"] = self.m_nypix/20+1 psfcube["enumbins"] = self.m_ebins psfcube["anumbins"] = self.m_anumbins psfcube["emin"] = emin.TeV() -- libgit2 0.21.4