Commit 694b572566fff6b1d51c6eb359e451204a9e3e9c
1 parent
0c70d44e
Remove debugging code
Showing
1 changed file
with
0 additions
and
13 deletions
cscripts/cspull.py
| @@ -186,9 +186,6 @@ class cspull(ctools.cscript): | @@ -186,9 +186,6 @@ class cspull(ctools.cscript): | ||
| 186 | expcube['chatter'] = self._chatter | 186 | expcube['chatter'] = self._chatter |
| 187 | expcube['debug'] = self._logDebug() | 187 | expcube['debug'] = self._logDebug() |
| 188 | expcube.run() | 188 | expcube.run() |
| 189 | - # JK: Debug | ||
| 190 | - expcube['outcube'] = 'expcube.fits' | ||
| 191 | - expcube.save() | ||
| 192 | 189 | ||
| 193 | # Notify exposure computation | 190 | # Notify exposure computation |
| 194 | if self._logTerse(): | 191 | if self._logTerse(): |
| @@ -210,9 +207,6 @@ class cspull(ctools.cscript): | @@ -210,9 +207,6 @@ class cspull(ctools.cscript): | ||
| 210 | psfcube['chatter'] = self._chatter | 207 | psfcube['chatter'] = self._chatter |
| 211 | psfcube['debug'] = self._logDebug() | 208 | psfcube['debug'] = self._logDebug() |
| 212 | psfcube.run() | 209 | psfcube.run() |
| 213 | - # JK: Debug | ||
| 214 | - psfcube['outcube'] = 'psfcube.fits' | ||
| 215 | - psfcube.save() | ||
| 216 | 210 | ||
| 217 | # Notify Psf computation | 211 | # Notify Psf computation |
| 218 | if self._logTerse(): | 212 | if self._logTerse(): |
| @@ -259,10 +253,6 @@ class cspull(ctools.cscript): | @@ -259,10 +253,6 @@ class cspull(ctools.cscript): | ||
| 259 | bkgcube['chatter'] = self._chatter | 253 | bkgcube['chatter'] = self._chatter |
| 260 | bkgcube['debug'] = self._logDebug() | 254 | bkgcube['debug'] = self._logDebug() |
| 261 | bkgcube.run() | 255 | bkgcube.run() |
| 262 | - # JK: Debug | ||
| 263 | - bkgcube['outcube'] = 'bkgcube.fits' | ||
| 264 | - bkgcube['outmodel'] = 'cube_model.xml' | ||
| 265 | - bkgcube.save() | ||
| 266 | 256 | ||
| 267 | # Notify background cube computation | 257 | # Notify background cube computation |
| 268 | if self._logTerse(): | 258 | if self._logTerse(): |
| @@ -354,8 +344,6 @@ class cspull(ctools.cscript): | @@ -354,8 +344,6 @@ class cspull(ctools.cscript): | ||
| 354 | obs[0].response(self._exposure, self._psfcube, | 344 | obs[0].response(self._exposure, self._psfcube, |
| 355 | self._bckcube) | 345 | self._bckcube) |
| 356 | obs.models(self._stackmodels) | 346 | obs.models(self._stackmodels) |
| 357 | - # JK: Test | ||
| 358 | - obs[0].save('stacked_cube.fits', True) | ||
| 359 | 347 | ||
| 360 | # Determine number of events in simulation | 348 | # Determine number of events in simulation |
| 361 | nevents = 0.0 | 349 | nevents = 0.0 |
| @@ -476,7 +464,6 @@ class cspull(ctools.cscript): | @@ -476,7 +464,6 @@ class cspull(ctools.cscript): | ||
| 476 | self._log('\n') | 464 | self._log('\n') |
| 477 | 465 | ||
| 478 | # Signal if stacked analysis is requested | 466 | # Signal if stacked analysis is requested |
| 479 | - #stacked = self._obs.size() > 1 and self._enumbins > 0 | ||
| 480 | stacked = self._enumbins > 0 | 467 | stacked = self._enumbins > 0 |
| 481 | 468 | ||
| 482 | # If several observations and binned: prepare stacked irfs | 469 | # If several observations and binned: prepare stacked irfs |