Commit 91abf1bd9a5b03ae482d147d64eaa4460a1bf7c0

Authored by Luigi Tibaldo
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,7 +487,7 @@ class csscs(ctools.csobservation):
487 487
488 # Write header for spatial bin 488 # Write header for spatial bin
489 msg = 'Spatial bin (%d) centred on (R.A.,Dec) = (%f,%f) deg' % (inx,ra,dec) 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 # Initialize results 492 # Initialize results
493 result = {} 493 result = {}
@@ -498,11 +498,11 @@ class csscs(ctools.csobservation): @@ -498,11 +498,11 @@ class csscs(ctools.csobservation):
498 'ulimit' : -1.0} 498 'ulimit' : -1.0}
499 499
500 # Mask observations 500 # Mask observations
501 - self._log_header3(gammalib.EXPLICIT, 'Masking observations') 501 + self._log_header3(gammalib.NORMAL, 'Masking observations')
502 masked_obs = self._mask_observations(ra,dec,self['rad'].real()) 502 masked_obs = self._mask_observations(ra,dec,self['rad'].real())
503 503
504 # Set up likelihood analysis 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 like = ctools.ctlike(masked_obs) 506 like = ctools.ctlike(masked_obs)
507 like['edisp'] = self['edisp'].boolean() 507 like['edisp'] = self['edisp'].boolean()
508 like['nthreads'] = 1 # Avoids OpenMP conflict 508 like['nthreads'] = 1 # Avoids OpenMP conflict
@@ -567,7 +567,7 @@ class csscs(ctools.csobservation): @@ -567,7 +567,7 @@ class csscs(ctools.csobservation):
567 if self['calc_ulim'].boolean(): 567 if self['calc_ulim'].boolean():
568 568
569 # Logging information 569 # Logging information
570 - self._log_header3(gammalib.EXPLICIT, 570 + self._log_header3(gammalib.NORMAL,
571 'Computing upper limit for source ' + name) 571 'Computing upper limit for source ' + name)
572 572
573 # Create upper limit object 573 # Create upper limit object
@@ -589,7 +589,7 @@ class csscs(ctools.csobservation): @@ -589,7 +589,7 @@ class csscs(ctools.csobservation):
589 ulimit_value *= corr_factor 589 ulimit_value *= corr_factor
590 result[name]['ulimit'] = ulimit_value 590 result[name]['ulimit'] = ulimit_value
591 except: 591 except:
592 - self._log_string(gammalib.EXPLICIT, 'Upper limit ' 592 + self._log_string(gammalib.NORMAL, 'Upper limit '
593 'calculation failed.') 593 'calculation failed.')
594 594
595 595