From ed864a4023d6895ab0f40520bf2d1ceb9067d2e1 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sun, 6 Dec 2015 23:01:32 +0100 Subject: [PATCH] Throw exception if counts cube is given in ctskymap. --- src/ctskymap/ctskymap.cpp | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/src/ctskymap/ctskymap.cpp b/src/ctskymap/ctskymap.cpp index 1158aa5..2fce299 100644 --- a/src/ctskymap/ctskymap.cpp +++ b/src/ctskymap/ctskymap.cpp @@ -347,6 +347,9 @@ void ctskymap::get_parameters(void) // Throw exception if no input observation file is given require_inobs(G_GET_PARAMETERS); + // Throw exception if counts cube is given + require_inobs_nocube(G_GET_PARAMETERS); + // Get observation container without response (not needed) m_obs = get_observations(false); -- libgit2 0.21.4