From 0eb668fbc844f8a593292b69dce3fd64e00d683b Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sun, 6 Dec 2015 23:10:13 +0100 Subject: [PATCH] Throw exception if counts cube is given in ctselect. --- src/ctselect/ctselect.cpp | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/src/ctselect/ctselect.cpp b/src/ctselect/ctselect.cpp index 706116d..cf7327c 100644 --- a/src/ctselect/ctselect.cpp +++ b/src/ctselect/ctselect.cpp @@ -510,6 +510,9 @@ void ctselect::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