Updated output to fit 80 characters command line
This commit is contained in:
parent
1a0d7876b8
commit
ec843c02f1
@ -219,12 +219,12 @@ class Heterodyne(ASensor):
|
|||||||
Returns
|
Returns
|
||||||
-------
|
-------
|
||||||
"""
|
"""
|
||||||
logger.info("-------------------------------------------------------------------------------------------------")
|
logger.info("--------------------------------------------------------------------------")
|
||||||
logger.info(prefix + "System temperature: %1.2e K" % t_sys.value)
|
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 + "Noise bandwidth: %1.2e Hz" % delta_nu.value)
|
||||||
logger.info(prefix + "RMS antenna temperature: %1.2e K" % t_rms.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(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)
|
@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,
|
def __output(self, t_signal: SpectralQty, t_background: SpectralQty, t_rms: SpectralQty,
|
||||||
|
@ -252,13 +252,13 @@ class Imager(ASensor):
|
|||||||
logger.warning(prefix + str(n_overexposed) + " pixel is overexposed.")
|
logger.warning(prefix + str(n_overexposed) + " pixel is overexposed.")
|
||||||
else:
|
else:
|
||||||
logger.warning(prefix + str(n_overexposed) + " pixels are overexposed.")
|
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 target: %1.2e electrons" % signal.sum().value)
|
||||||
logger.info(prefix + "Collected electrons from background: %1.2e electrons" % background.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 + "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 + "Read noise: %1.2e electrons" % (read_noise ** 2).sum().value)
|
||||||
logger.info(prefix + "Total collected electrons: %1.2e electrons" % total.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)
|
@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,
|
def __output(self, signal: u.Quantity, background: u.Quantity, read_noise: u.Quantity,
|
||||||
|
Loading…
Reference in New Issue
Block a user