From d8fcfdf3c98ca08e800d737b9aadbebe1887f7ba Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Fri, 1 Jul 2016 11:53:13 +0200 Subject: [PATCH] Query energy dispersion cube before background cube --- src/support/ctool.cpp | 7 ++++--- test/testing.py | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/support/ctool.cpp b/src/support/ctool.cpp index 2c78676..c8b8cde 100644 --- a/src/support/ctool.cpp +++ b/src/support/ctool.cpp @@ -985,6 +985,10 @@ void ctool::set_obs_response(GCTAObservation* obs) // Get filenames GFilename expcube((*this)["expcube"].filename()); GFilename psfcube((*this)["psfcube"].filename()); + GFilename edispcube; + if (query_edisp) { + edispcube = (*this)["edispcube"].filename(); + } GFilename bkgcube((*this)["bkgcube"].filename()); // Extract stacked response information if available @@ -1004,9 +1008,6 @@ void ctool::set_obs_response(GCTAObservation* obs) // query it now if (query_edisp) { - // Get filename - GFilename edispcube((*this)["edispcube"].filename()); - // If filename is valid then use energy dispersion ... if ((gammalib::toupper(edispcube.url()) != "NONE") && !edispcube.is_empty()) { diff --git a/test/testing.py b/test/testing.py index 3d9d9ca..be0bec3 100755 --- a/test/testing.py +++ b/test/testing.py @@ -78,7 +78,6 @@ class test(gammalib.GPythonTestSuite): rc = os.system(cmd+' >/dev/null 2>&1') except: rc = -1 - pass # Return return code return rc -- libgit2 0.21.4