Commit 0eb668fbc844f8a593292b69dce3fd64e00d683b

Authored by Jürgen Knödlseder
1 parent ed864a40

Throw exception if counts cube is given in ctselect.

Showing 1 changed file with 3 additions and 0 deletions
src/ctselect/ctselect.cpp
@@ -510,6 +510,9 @@ void ctselect::get_parameters(void) @@ -510,6 +510,9 @@ void ctselect::get_parameters(void)
510 // Throw exception if no input observation file is given 510 // Throw exception if no input observation file is given
511 require_inobs(G_GET_PARAMETERS); 511 require_inobs(G_GET_PARAMETERS);
512 512
  513 + // Throw exception if counts cube is given
  514 + require_inobs_nocube(G_GET_PARAMETERS);
  515 +
513 // Get observation container without response (not needed) 516 // Get observation container without response (not needed)
514 m_obs = get_observations(false); 517 m_obs = get_observations(false);
515 518