Commit 91abf1bd9a5b03ae482d147d64eaa4460a1bf7c0
1 parent
9b69e6d2
adjusted chattiness level
Showing
1 changed file
with
5 additions
and
5 deletions
cscripts/csscs.py
| ... | ... | @@ -487,7 +487,7 @@ class csscs(ctools.csobservation): |
| 487 | 487 | |
| 488 | 488 | # Write header for spatial bin |
| 489 | 489 | msg = 'Spatial bin (%d) centred on (R.A.,Dec) = (%f,%f) deg' % (inx,ra,dec) |
| 490 | - self._log_header2(gammalib.EXPLICIT, msg) | |
| 490 | + self._log_header2(gammalib.TERSE, msg) | |
| 491 | 491 | |
| 492 | 492 | # Initialize results |
| 493 | 493 | result = {} |
| ... | ... | @@ -498,11 +498,11 @@ class csscs(ctools.csobservation): |
| 498 | 498 | 'ulimit' : -1.0} |
| 499 | 499 | |
| 500 | 500 | # Mask observations |
| 501 | - self._log_header3(gammalib.EXPLICIT, 'Masking observations') | |
| 501 | + self._log_header3(gammalib.NORMAL, 'Masking observations') | |
| 502 | 502 | masked_obs = self._mask_observations(ra,dec,self['rad'].real()) |
| 503 | 503 | |
| 504 | 504 | # Set up likelihood analysis |
| 505 | - self._log_header3(gammalib.EXPLICIT, 'Performing fit in energy bin') | |
| 505 | + self._log_header3(gammalib.NORMAL, 'Performing fit in energy bin') | |
| 506 | 506 | like = ctools.ctlike(masked_obs) |
| 507 | 507 | like['edisp'] = self['edisp'].boolean() |
| 508 | 508 | like['nthreads'] = 1 # Avoids OpenMP conflict |
| ... | ... | @@ -567,7 +567,7 @@ class csscs(ctools.csobservation): |
| 567 | 567 | if self['calc_ulim'].boolean(): |
| 568 | 568 | |
| 569 | 569 | # Logging information |
| 570 | - self._log_header3(gammalib.EXPLICIT, | |
| 570 | + self._log_header3(gammalib.NORMAL, | |
| 571 | 571 | 'Computing upper limit for source ' + name) |
| 572 | 572 | |
| 573 | 573 | # Create upper limit object |
| ... | ... | @@ -589,7 +589,7 @@ class csscs(ctools.csobservation): |
| 589 | 589 | ulimit_value *= corr_factor |
| 590 | 590 | result[name]['ulimit'] = ulimit_value |
| 591 | 591 | except: |
| 592 | - self._log_string(gammalib.EXPLICIT, 'Upper limit ' | |
| 592 | + self._log_string(gammalib.NORMAL, 'Upper limit ' | |
| 593 | 593 | 'calculation failed.') |
| 594 | 594 | |
| 595 | 595 | ... | ... |