diff --git a/ChangeLog b/ChangeLog index 808365b..d8d1a3f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,9 @@ -2015-06-05 Juergen Knoedlseder +2015-06-09 Juergen Knoedlseder * Version 0.10.0 released ========================= + Check existence of ROI in ctbin (#1476) Allocate optimizer in ctlike upon construction (#1471) Move cscripts into the ctools Python module (#1470) diff --git a/NEWS b/NEWS index afa1965..bfecfa4 100644 --- a/NEWS +++ b/NEWS @@ -2,7 +2,7 @@ New Features and Important Changes in ctools 0.10.0 Author(s) : Juergen Knoedlseder -5 June 2015 +9 June 2015 1. Introduction @@ -40,7 +40,8 @@ None 7. ctbin - CTA event binning ---------------------------- -None +ctbin now verifies if an ROI has been set properly, and throws an exception in +case that no ROI information could be found. 8. ctlike - Maximum likelihood fitting diff --git a/src/ctbin/ctbin.cpp b/src/ctbin/ctbin.cpp index e110af9..7070f2f 100644 --- a/src/ctbin/ctbin.cpp +++ b/src/ctbin/ctbin.cpp @@ -458,9 +458,9 @@ void ctbin::fill_cube(GCTAObservation* obs) // Check for RoI sanity if (!roi.is_valid()) { std::string msg = "No RoI information found in input observation " - "\""+obs->name()+"\". Consider running ctselect " - "to set the RoI information properly. This is required " - "to proceed with ctbin."; + "\""+obs->name()+"\". Run ctselect to specify " + "an RoI for this observation before running " + "ctbin."; throw GException::invalid_value(G_FILL_CUBE, msg); }