From e123f946a1dcc99192be325d544b64c2c14ec5ca Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 2 Jul 2015 12:54:40 +0200 Subject: [PATCH] Remove cntcube parameter. --- scripts/csresmap.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/csresmap.py b/scripts/csresmap.py index 9a52841..0b601fa 100755 --- a/scripts/csresmap.py +++ b/scripts/csresmap.py @@ -145,7 +145,7 @@ class csresmap(ctools.cscript): if gammalib.is_fits(self["inobs"].filename()): cta = gammalib.GCTAObservation() cta.load(self["inobs"].filename()) - if self.obs[0].eventtype() == "CountsCube": + if cta.eventtype() == "CountsCube": self.m_skip_binning = True # If we have a counts cube, then ask whether we also have a model @@ -249,18 +249,13 @@ class csresmap(ctools.cscript): self.log(str(self.obs)) self.log("\n") - countmap = gammalib.GSkymap() - modelmap = gammalib.GSkymap() - # Use input file directly if given if self.m_use_maps: - countmap = gammalib.GSkymap(self.m_cntcube) + countmap = gammalib.GSkymap(self["inobs"].filename()) modelmap = gammalib.GSkymap(self.m_modcube) else: - cta_counts_cube = gammalib.GCTAEventCube() - if self.m_skip_binning: cta_counts_cube = gammalib.GCTAEventCube(self.obs[0].events().clone()) -- libgit2 0.21.4