Updated output to fit 80 characters command line

This commit is contained in:
Lukas Klass 2020-10-16 09:45:48 +02:00
parent 1a0d7876b8
commit ec843c02f1
2 changed files with 4 additions and 4 deletions

View File

@ -219,12 +219,12 @@ class Heterodyne(ASensor):
Returns
-------
"""
logger.info("-------------------------------------------------------------------------------------------------")
logger.info("--------------------------------------------------------------------------")
logger.info(prefix + "System temperature: %1.2e K" % t_sys.value)
logger.info(prefix + "Noise bandwidth: %1.2e Hz" % delta_nu.value)
logger.info(prefix + "RMS antenna temperature: %1.2e K" % t_rms.value)
logger.info(prefix + "Antenna temperature: %1.2e K" % t_signal.value)
logger.info("-------------------------------------------------------------------------------------------------")
logger.info("--------------------------------------------------------------------------")
@u.quantity_input(signal=u.electron, background=u.electron, read_noise=u.electron ** 0.5, dark=u.electron)
def __output(self, t_signal: SpectralQty, t_background: SpectralQty, t_rms: SpectralQty,

View File

@ -252,13 +252,13 @@ class Imager(ASensor):
logger.warning(prefix + str(n_overexposed) + " pixel is overexposed.")
else:
logger.warning(prefix + str(n_overexposed) + " pixels are overexposed.")
logger.info("-------------------------------------------------------------------------------------------------")
logger.info("--------------------------------------------------------------------------")
logger.info(prefix + "Collected electrons from target: %1.2e electrons" % signal.sum().value)
logger.info(prefix + "Collected electrons from background: %1.2e electrons" % background.sum().value)
logger.info(prefix + "Electrons from dark current: %1.2e electrons" % dark.sum().value)
logger.info(prefix + "Read noise: %1.2e electrons" % (read_noise ** 2).sum().value)
logger.info(prefix + "Total collected electrons: %1.2e electrons" % total.sum().value)
logger.info("-------------------------------------------------------------------------------------------------")
logger.info("--------------------------------------------------------------------------")
@u.quantity_input(signal=u.electron, background=u.electron, read_noise=u.electron ** 0.5, dark=u.electron)
def __output(self, signal: u.Quantity, background: u.Quantity, read_noise: u.Quantity,