diff --git a/ChangeLog b/ChangeLog index ef90d3f..f4d9bc6 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,4 @@ -2020-11-27 +2020-12-03 * Version 2.0.0 released ======================== @@ -9,6 +9,7 @@ Fix implementation of fix_spat_for_ts parameter in ctlike (#3426) Replace std::tmpnam() by gammalib::tmpnam() function in ctselect (#3324) Remove implicit conversion warnings (#3324) + Add support of rectangular On/Off regions (#3248) 2020-10-15 diff --git a/NEWS b/NEWS index 7fac998..9f2f0f1 100755 --- a/NEWS +++ b/NEWS @@ -1,6 +1,6 @@ New Features and Important Changes in ctools 2.0.0 -27 November 2020 +3 December 2020 Introduction @@ -186,7 +186,10 @@ None cslightcrv - Generate light curve --------------------------------- -None +Added support for rectangular On/Off regions. The "srcshape" parameter now +can now be set to "RECT" to use rectangular sky regions. The parameter is now +automatic. The parameters "width", "height", and "posang" were added to specify +the width, height and position angle of the rectangular sky regions (#3248). csmodelinfo - Return model information @@ -231,12 +234,18 @@ None csphagen - Generate On/Off observations --------------------------------------- -None +Added support for rectangular On/Off regions. The "srcshape" parameter now +can now be set to "RECT" to use rectangular sky regions. The parameter is now +automatic. The parameters "width", "height", and "posang" were added to specify +the width, height and position angle of the rectangular sky regions (#3248). csphasecrv - Generate phase curve --------------------------------- -None +Added support for rectangular On/Off regions. The "srcshape" parameter now +can now be set to "RECT" to use rectangular sky regions. The parameter is now +automatic. The parameters "width", "height", and "posang" were added to specify +the width, height and position angle of the rectangular sky regions (#3248). cspull - Generate pull distributions @@ -261,7 +270,10 @@ None csscs - Spectral component separation ------------------------------------- -None +Added support for rectangular On/Off regions. The "srcshape" parameter now +can now be set to "RECT" to use rectangular sky regions. The parameter is now +automatic. The parameters "width", "height", and "posang" were added to specify +the width, height and position angle of the rectangular sky regions (#3248). cssens - Computes sensitivity curve @@ -326,7 +338,11 @@ None obsutils - Observation utilities -------------------------------- -None +Added support for rectangular On/Off regions in get_onoff_obs(). The "srcshape" +parameter now can now be set to "RECT" to use rectangular sky regions. The +parameter is now automatic. The parameters "width", "height", and "posang" were +added to specify the width, height and position angle of the rectangular sky +regions (#3248). Examples diff --git a/README.md b/README.md index 85764f3..3cdc87f 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ctools information ================== -* Version: 2.0.0.dev (27 November 2020) +* Version: 2.0.0.dev (3 December 2020) * GammaLib dependency: 2.0.0.dev [![Build Status](https://cta-jenkins.irap.omp.eu/buildStatus/icon?job=ctools-integrate-os)](https://cta-jenkins.irap.omp.eu/job/ctools-integrate-os/) diff --git a/test/test_csphagen.py b/test/test_csphagen.py index db4e95a..2676527 100644 --- a/test/test_csphagen.py +++ b/test/test_csphagen.py @@ -411,7 +411,7 @@ class Test(test): phagen.execute() # Check output - self._check_output('csphagen_py8', self._nbins, self._nreg_with_excl) + self._check_output('csphagen_py8', self._nbins, 9) self._check_outobs('csphagen_py8_obs.xml', 1) # Return @@ -621,7 +621,7 @@ class Test(test): # Check for Off region offregion = filenameroot + '_off.reg' - reg = gammalib.GSkyRegions(offregion) + reg = gammalib.GSkyRegions(offregion) self.test_value(reg.size(), nreg, 'Check for ' + str(nreg) + ' region in background region file')