Commit e6c67ef25b35984eb26e94cf39ba1d5409cd66c2
Merge branch 'integration' into devel
Showing
1 changed file
with
4 additions
and
7 deletions
cscripts/cscaldb.py
| ... | ... | @@ -166,9 +166,7 @@ class cscaldb(ctools.cscript): |
| 166 | 166 | continue |
| 167 | 167 | |
| 168 | 168 | # Write mission into logger |
| 169 | - if self._logTerse(): | |
| 170 | - self._log('\n') | |
| 171 | - self._log.header1('Mission: '+mission) | |
| 169 | + self._log_header1(gammalib.TERSE, 'Mission: '+mission) | |
| 172 | 170 | |
| 173 | 171 | # Extract instruments |
| 174 | 172 | instruments = self._get_instruments(caldb, mission) |
| ... | ... | @@ -176,10 +174,9 @@ class cscaldb(ctools.cscript): |
| 176 | 174 | # Loop over instruments |
| 177 | 175 | for instrument in instruments: |
| 178 | 176 | |
| 179 | - # Write mission into logger | |
| 180 | - if self._logTerse(): | |
| 181 | - self._log.header3('Response functions in database "'+ | |
| 182 | - instrument+'"') | |
| 177 | + # Write instrument into logger | |
| 178 | + self._log_header3(gammalib.TERSE, 'Response functions in database "'+ | |
| 179 | + instrument+'"') | |
| 183 | 180 | |
| 184 | 181 | # Open calibration index file and retrieve calibrations |
| 185 | 182 | filename = '/data/'+mission+'/'+instrument+'/caldb.indx' | ... | ... |