Commit bcd9f50ad0876a2c094e10756c41e57e3575c09b
1 parent
35e553ce
Use new logging methods
Showing
1 changed file
with
4 additions
and
7 deletions
cscripts/cscaldb.py
| @@ -166,9 +166,7 @@ class cscaldb(ctools.cscript): | @@ -166,9 +166,7 @@ class cscaldb(ctools.cscript): | ||
| 166 | continue | 166 | continue |
| 167 | 167 | ||
| 168 | # Write mission into logger | 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 | # Extract instruments | 171 | # Extract instruments |
| 174 | instruments = self._get_instruments(caldb, mission) | 172 | instruments = self._get_instruments(caldb, mission) |
| @@ -176,10 +174,9 @@ class cscaldb(ctools.cscript): | @@ -176,10 +174,9 @@ class cscaldb(ctools.cscript): | ||
| 176 | # Loop over instruments | 174 | # Loop over instruments |
| 177 | for instrument in instruments: | 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 | # Open calibration index file and retrieve calibrations | 181 | # Open calibration index file and retrieve calibrations |
| 185 | filename = '/data/'+mission+'/'+instrument+'/caldb.indx' | 182 | filename = '/data/'+mission+'/'+instrument+'/caldb.indx' |