Skip to content

Commit

Permalink
a little logging cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
moustakas committed Oct 23, 2024
1 parent d9ed1f0 commit 82d57c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions py/fastspecfit/continuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1377,9 +1377,9 @@ def continuum_fastspec(redshift, objflam, objflamivar, CTools,

ncam = len(data['cameras'])
if ncam == 1:
snrmsg = f"Median S/N_{data['cameras']}={data['snr'][0]:.2f}"
snrmsg = f"Median spectral S/N_{data['cameras']}={data['snr'][0]:.2f}"
else:
snrmsg = f"Median S/N_{data['cameras'][0]}={data['snr'][0]:.2f}"
snrmsg = f"Median spectral S/N_{data['cameras'][0]}={data['snr'][0]:.2f}"
for icam in np.arange(ncam-1)+1:
snrmsg += f" S/N_{data['cameras'][icam]}={data['snr'][icam]:.2f}"
log.info(snrmsg)
Expand Down
2 changes: 1 addition & 1 deletion py/fastspecfit/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import fitsio
from astropy.table import Table

from fastspecfit.logger import log
from fastspecfit.logger import log, DEBUG
from fastspecfit.singlecopy import sc_data
from fastspecfit.photometry import Photometry
from fastspecfit.util import FLUXNORM, ZWarningMask
Expand Down
4 changes: 2 additions & 2 deletions py/fastspecfit/photometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import fitsio
from astropy.table import Table

from fastspecfit.logger import log
from fastspecfit.logger import log, DEBUG
from fastspecfit.util import trapz, C_LIGHT, FLUXNORM


Expand Down Expand Up @@ -334,7 +334,7 @@ def get_ab_maggies(filters, flux, wave):
maggies = Photometry.get_ab_maggies_unchecked(filters, flux, wave)
except:
# pad in case of an object at very high redshift (z > 5.5)
log.warning('Padding model spectrum due to insufficient wavelength coverage to synthesize photometry.')
log.debug('Padding input spectrum due to insufficient wavelength coverage to synthesize photometry.')
padflux, padwave = filters.pad_spectrum(flux, wave, axis=0, method='edge')

if flux.ndim > 1:
Expand Down

0 comments on commit 82d57c1

Please sign in to comment.