Commit ed864a4023d6895ab0f40520bf2d1ceb9067d2e1
1 parent
827a8ffd
Throw exception if counts cube is given in ctskymap.
Showing
1 changed file
with
3 additions
and
0 deletions
src/ctskymap/ctskymap.cpp
| @@ -347,6 +347,9 @@ void ctskymap::get_parameters(void) | @@ -347,6 +347,9 @@ void ctskymap::get_parameters(void) | ||
| 347 | // Throw exception if no input observation file is given | 347 | // Throw exception if no input observation file is given |
| 348 | require_inobs(G_GET_PARAMETERS); | 348 | require_inobs(G_GET_PARAMETERS); |
| 349 | 349 | ||
| 350 | + // Throw exception if counts cube is given | ||
| 351 | + require_inobs_nocube(G_GET_PARAMETERS); | ||
| 352 | + | ||
| 350 | // Get observation container without response (not needed) | 353 | // Get observation container without response (not needed) |
| 351 | m_obs = get_observations(false); | 354 | m_obs = get_observations(false); |
| 352 | 355 |