Commit f573d21973498f2419b155c9c9152ef4e3393887
1 parent
122cca1a
Add self.logFileOpen() to cstsmapsplit.execute() method (#2127)
Showing
16 changed files
with
99 additions
and
35 deletions
ChangeLog
| 1 | -2017-06-30 | |
| 1 | +2017-07-03 | |
| 2 | 2 | |
| 3 | 3 | * Bug fix version 1.3.1 released |
| 4 | 4 | ================================ |
| ... | ... | @@ -6,6 +6,7 @@ |
| 6 | 6 | Fix csresmap significance computation error (#2136) |
| 7 | 7 | Use MigMatrixNoTheta2cut_offaxis and AngularPSF2DEtrue_offaxis histograms to |
| 8 | 8 | compute PSF and energy dispersion IRFs (#2135) |
| 9 | + Add self.logFileOpen() to cstsmapsplit.execute() method (#2127) | |
| 9 | 10 | Properly forward working log file pointer in ctobssim::set_mc_id_names() (#2123) |
| 10 | 11 | Correct computation of standard deviations in cssrcdetect |
| 11 | 12 | csobsselect accepts an observation container upon construction | ... | ... |
NEWS
| 1 | 1 | New Features and Important Changes in ctools 1.3.1 |
| 2 | 2 | |
| 3 | -29 June 2017 | |
| 3 | +3 July 2017 | |
| 4 | 4 | |
| 5 | 5 | |
| 6 | 6 | Introduction |
| ... | ... | @@ -130,6 +130,9 @@ The csresmap threw an exception for the SIGNIFICANCE method when the model map |
| 130 | 130 | contained zero entries. This has been fixed now by properly handling the case of |
| 131 | 131 | zero entries (#2136). |
| 132 | 132 | |
| 133 | +A call to self.logFileOpen() has been added to the cstsmapsplit.execute() method | |
| 134 | +so that a log file is written when the script is executed (#2127). | |
| 135 | + | |
| 133 | 136 | |
| 134 | 137 | Examples |
| 135 | 138 | -------- | ... | ... |
cscripts/cscaldb.py
cscripts/csebins.py
| ... | ... | @@ -272,25 +272,6 @@ class csebins(ctools.cscript): |
| 272 | 272 | # Return |
| 273 | 273 | return |
| 274 | 274 | |
| 275 | - def execute(self): | |
| 276 | - """ | |
| 277 | - Execute the script | |
| 278 | - """ | |
| 279 | - # Open logfile | |
| 280 | - self.logFileOpen() | |
| 281 | - | |
| 282 | - # Read ahead output parameters | |
| 283 | - self._read_ahead(True) | |
| 284 | - | |
| 285 | - # Run the scrip | |
| 286 | - self.run() | |
| 287 | - | |
| 288 | - # Save energy boundaries | |
| 289 | - self.save() | |
| 290 | - | |
| 291 | - # Return | |
| 292 | - return | |
| 293 | - | |
| 294 | 275 | def save(self): |
| 295 | 276 | """ |
| 296 | 277 | Save energy boundaries |
| ... | ... | @@ -322,6 +303,25 @@ class csebins(ctools.cscript): |
| 322 | 303 | # Return |
| 323 | 304 | return self._ebounds |
| 324 | 305 | |
| 306 | + def execute(self): | |
| 307 | + """ | |
| 308 | + Execute the script | |
| 309 | + """ | |
| 310 | + # Open logfile | |
| 311 | + self.logFileOpen() | |
| 312 | + | |
| 313 | + # Read ahead output parameters | |
| 314 | + self._read_ahead(True) | |
| 315 | + | |
| 316 | + # Run the scrip | |
| 317 | + self.run() | |
| 318 | + | |
| 319 | + # Save energy boundaries | |
| 320 | + self.save() | |
| 321 | + | |
| 322 | + # Return | |
| 323 | + return | |
| 324 | + | |
| 325 | 325 | |
| 326 | 326 | # ======================== # |
| 327 | 327 | # Main routine entry point # | ... | ... |
cscripts/csiactcopy.py
cscripts/csiactdata.py
cscripts/csobs2caldb.py
cscripts/cspull.py
cscripts/csroot2caldb.py
cscripts/cssens.py
cscripts/cstsdist.py
cscripts/cstsmapsplit.py
| ... | ... | @@ -255,19 +255,6 @@ class cstsmapsplit(ctools.cscript): |
| 255 | 255 | # Return |
| 256 | 256 | return |
| 257 | 257 | |
| 258 | - def execute(self): | |
| 259 | - """ | |
| 260 | - Execute the script | |
| 261 | - """ | |
| 262 | - # Run the script | |
| 263 | - self.run() | |
| 264 | - | |
| 265 | - # Save results | |
| 266 | - self.save() | |
| 267 | - | |
| 268 | - # Return | |
| 269 | - return | |
| 270 | - | |
| 271 | 258 | def save(self): |
| 272 | 259 | """ |
| 273 | 260 | Save commands to ASCII file |
| ... | ... | @@ -291,6 +278,25 @@ class cstsmapsplit(ctools.cscript): |
| 291 | 278 | # Return |
| 292 | 279 | return |
| 293 | 280 | |
| 281 | + def execute(self): | |
| 282 | + """ | |
| 283 | + Execute the script | |
| 284 | + """ | |
| 285 | + # Open logfile | |
| 286 | + self.logFileOpen() | |
| 287 | + | |
| 288 | + # Read ahead output parameters | |
| 289 | + self._read_ahead(True) | |
| 290 | + | |
| 291 | + # Run the script | |
| 292 | + self.run() | |
| 293 | + | |
| 294 | + # Save results | |
| 295 | + self.save() | |
| 296 | + | |
| 297 | + # Return | |
| 298 | + return | |
| 299 | + | |
| 294 | 300 | |
| 295 | 301 | # ======================== # |
| 296 | 302 | # Main routine entry point # | ... | ... |
cscripts/csviscube.py
cscripts/csworkflow.py
doc/source/admin/release_history/1.3.1.rst
0 → 100644
| 1 | +.. _1.3.1: | |
| 2 | + | |
| 3 | +ctools 1.3.1 release (TBD) | |
| 4 | +========================== | |
| 5 | + | |
| 6 | +Overview | |
| 7 | +-------- | |
| 8 | + | |
| 9 | +ctools 1.3.1 is a bug fix for ctools release 1.3. | |
| 10 | + | |
| 11 | +The following bugs have been fixed: | |
| 12 | + | |
| 13 | +* [`2136 <https://cta-redmine.irap.omp.eu/issues/2136>`_] - | |
| 14 | + Fix csresmap significance computation error | |
| 15 | +* [`2135 <https://cta-redmine.irap.omp.eu/issues/2135>`_] - | |
| 16 | + Use ``MigMatrixNoTheta2cut_offaxis`` and ``AngularPSF2DEtrue_offaxis`` | |
| 17 | + histograms to compute PSF and energy dispersion IRFs | |
| 18 | +* [`2127 <https://cta-redmine.irap.omp.eu/issues/2127>`_] - | |
| 19 | + Add ``self.logFileOpen()`` to ``cstsmapsplit.execute()`` method | |
| 20 | +* [`2123 <https://cta-redmine.irap.omp.eu/issues/2123>`_] - | |
| 21 | + Properly forward working log file pointer in ``ctobssim::set_mc_id_names()`` | |
| 22 | +* Correct computation of standard deviations in :ref:`cssrcdetect` | |
| 23 | +* :ref:`csobsselect` accepts an observation container upon construction | ... | ... |
doc/source/admin/release_history/index.rst
| ... | ... | @@ -18,8 +18,9 @@ Bug fix releases: |
| 18 | 18 | .. toctree:: |
| 19 | 19 | :maxdepth: 1 |
| 20 | 20 | |
| 21 | - ctools 1.0.1 <1.0.1> | |
| 21 | + ctools 1.3.1 <1.3.1> | |
| 22 | 22 | ctools 1.2.1 <1.2.1> |
| 23 | + ctools 1.0.1 <1.0.1> | |
| 23 | 24 | |
| 24 | 25 | For older ctools versions see |
| 25 | 26 | `here <https://cta-redmine.irap.omp.eu/projects/ctools/wiki/Release_notes>`_. | ... | ... |