Commit f573d21973498f2419b155c9c9152ef4e3393887

Authored by Jürgen Knödlseder
1 parent 122cca1a

Add self.logFileOpen() to cstsmapsplit.execute() method (#2127)

ChangeLog
1 -2017-06-30 1 +2017-07-03
2 2
3 * Bug fix version 1.3.1 released 3 * Bug fix version 1.3.1 released
4 ================================ 4 ================================
@@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
6 Fix csresmap significance computation error (#2136) 6 Fix csresmap significance computation error (#2136)
7 Use MigMatrixNoTheta2cut_offaxis and AngularPSF2DEtrue_offaxis histograms to 7 Use MigMatrixNoTheta2cut_offaxis and AngularPSF2DEtrue_offaxis histograms to
8 compute PSF and energy dispersion IRFs (#2135) 8 compute PSF and energy dispersion IRFs (#2135)
  9 + Add self.logFileOpen() to cstsmapsplit.execute() method (#2127)
9 Properly forward working log file pointer in ctobssim::set_mc_id_names() (#2123) 10 Properly forward working log file pointer in ctobssim::set_mc_id_names() (#2123)
10 Correct computation of standard deviations in cssrcdetect 11 Correct computation of standard deviations in cssrcdetect
11 csobsselect accepts an observation container upon construction 12 csobsselect accepts an observation container upon construction
1 New Features and Important Changes in ctools 1.3.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 Introduction 6 Introduction
@@ -130,6 +130,9 @@ The csresmap threw an exception for the SIGNIFICANCE method when the model map @@ -130,6 +130,9 @@ The csresmap threw an exception for the SIGNIFICANCE method when the model map
130 contained zero entries. This has been fixed now by properly handling the case of 130 contained zero entries. This has been fixed now by properly handling the case of
131 zero entries (#2136). 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 Examples 137 Examples
135 -------- 138 --------
cscripts/cscaldb.py
@@ -204,6 +204,9 @@ class cscaldb(ctools.cscript): @@ -204,6 +204,9 @@ class cscaldb(ctools.cscript):
204 # Open logfile 204 # Open logfile
205 self.logFileOpen() 205 self.logFileOpen()
206 206
  207 + # Read ahead output parameters
  208 + self._read_ahead(True)
  209 +
207 # Run the script 210 # Run the script
208 self.run() 211 self.run()
209 212
cscripts/csebins.py
@@ -272,25 +272,6 @@ class csebins(ctools.cscript): @@ -272,25 +272,6 @@ class csebins(ctools.cscript):
272 # Return 272 # Return
273 return 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 def save(self): 275 def save(self):
295 """ 276 """
296 Save energy boundaries 277 Save energy boundaries
@@ -322,6 +303,25 @@ class csebins(ctools.cscript): @@ -322,6 +303,25 @@ class csebins(ctools.cscript):
322 # Return 303 # Return
323 return self._ebounds 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 # Main routine entry point # 327 # Main routine entry point #
cscripts/csiactcopy.py
@@ -743,6 +743,9 @@ class csiactcopy(ctools.cscript): @@ -743,6 +743,9 @@ class csiactcopy(ctools.cscript):
743 # Open logfile 743 # Open logfile
744 self.logFileOpen() 744 self.logFileOpen()
745 745
  746 + # Read ahead output parameters
  747 + self._read_ahead(True)
  748 +
746 # Run the script 749 # Run the script
747 self.run() 750 self.run()
748 751
cscripts/csiactdata.py
@@ -184,6 +184,9 @@ class csiactdata(ctools.cscript): @@ -184,6 +184,9 @@ class csiactdata(ctools.cscript):
184 # Open logfile 184 # Open logfile
185 self.logFileOpen() 185 self.logFileOpen()
186 186
  187 + # Read ahead output parameters
  188 + self._read_ahead(True)
  189 +
187 # Run the script 190 # Run the script
188 self.run() 191 self.run()
189 192
cscripts/csobs2caldb.py
@@ -400,6 +400,9 @@ class csobs2caldb(ctools.cscript): @@ -400,6 +400,9 @@ class csobs2caldb(ctools.cscript):
400 # Open logfile 400 # Open logfile
401 self.logFileOpen() 401 self.logFileOpen()
402 402
  403 + # Read ahead output parameters
  404 + self._read_ahead(True)
  405 +
403 # Run the script 406 # Run the script
404 self.run() 407 self.run()
405 408
cscripts/cspull.py
@@ -329,6 +329,9 @@ class cspull(ctools.cscript): @@ -329,6 +329,9 @@ class cspull(ctools.cscript):
329 # Open logfile 329 # Open logfile
330 self.logFileOpen() 330 self.logFileOpen()
331 331
  332 + # Read ahead output parameters
  333 + self._read_ahead(True)
  334 +
332 # Run the script 335 # Run the script
333 self.run() 336 self.run()
334 337
cscripts/csroot2caldb.py
@@ -1784,6 +1784,9 @@ class csroot2caldb(ctools.cscript): @@ -1784,6 +1784,9 @@ class csroot2caldb(ctools.cscript):
1784 # Open logfile 1784 # Open logfile
1785 self.logFileOpen() 1785 self.logFileOpen()
1786 1786
  1787 + # Read ahead output parameters
  1788 + self._read_ahead(True)
  1789 +
1787 # Run the script 1790 # Run the script
1788 self.run() 1791 self.run()
1789 1792
cscripts/cssens.py
@@ -649,6 +649,9 @@ class cssens(ctools.cscript): @@ -649,6 +649,9 @@ class cssens(ctools.cscript):
649 # Open logfile 649 # Open logfile
650 self.logFileOpen() 650 self.logFileOpen()
651 651
  652 + # Read ahead output parameters
  653 + self._read_ahead(True)
  654 +
652 # Run the script 655 # Run the script
653 self.run() 656 self.run()
654 657
cscripts/cstsdist.py
@@ -295,6 +295,9 @@ class cstsdist(ctools.cscript): @@ -295,6 +295,9 @@ class cstsdist(ctools.cscript):
295 # Open logfile 295 # Open logfile
296 self.logFileOpen() 296 self.logFileOpen()
297 297
  298 + # Read ahead output parameters
  299 + self._read_ahead(True)
  300 +
298 # Run the script 301 # Run the script
299 self.run() 302 self.run()
300 303
cscripts/cstsmapsplit.py
@@ -255,19 +255,6 @@ class cstsmapsplit(ctools.cscript): @@ -255,19 +255,6 @@ class cstsmapsplit(ctools.cscript):
255 # Return 255 # Return
256 return 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 def save(self): 258 def save(self):
272 """ 259 """
273 Save commands to ASCII file 260 Save commands to ASCII file
@@ -291,6 +278,25 @@ class cstsmapsplit(ctools.cscript): @@ -291,6 +278,25 @@ class cstsmapsplit(ctools.cscript):
291 # Return 278 # Return
292 return 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 # Main routine entry point # 302 # Main routine entry point #
cscripts/csviscube.py
@@ -519,6 +519,9 @@ class csviscube(ctools.cscript): @@ -519,6 +519,9 @@ class csviscube(ctools.cscript):
519 # Open logfile 519 # Open logfile
520 self.logFileOpen() 520 self.logFileOpen()
521 521
  522 + # Read ahead output parameters
  523 + self._read_ahead(True)
  524 +
522 # Run the script 525 # Run the script
523 self.run() 526 self.run()
524 527
cscripts/csworkflow.py
@@ -360,6 +360,9 @@ class csworkflow(ctools.cscript): @@ -360,6 +360,9 @@ class csworkflow(ctools.cscript):
360 # Open logfile 360 # Open logfile
361 self.logFileOpen() 361 self.logFileOpen()
362 362
  363 + # Read ahead output parameters
  364 + self._read_ahead(True)
  365 +
363 # Run the script 366 # Run the script
364 self.run() 367 self.run()
365 368
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,8 +18,9 @@ Bug fix releases:
18 .. toctree:: 18 .. toctree::
19 :maxdepth: 1 19 :maxdepth: 1
20 20
21 - ctools 1.0.1 <1.0.1> 21 + ctools 1.3.1 <1.3.1>
22 ctools 1.2.1 <1.2.1> 22 ctools 1.2.1 <1.2.1>
  23 + ctools 1.0.1 <1.0.1>
23 24
24 For older ctools versions see 25 For older ctools versions see
25 `here <https://cta-redmine.irap.omp.eu/projects/ctools/wiki/Release_notes>`_. 26 `here <https://cta-redmine.irap.omp.eu/projects/ctools/wiki/Release_notes>`_.