From d91039b36ac4062fdfa8e1f7e70adbffac3235d7 Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Thu, 1 Oct 2020 16:42:35 +0200 Subject: [PATCH] Readability of debug output improved --- esbo_etc/classes/optical_component/AOpticalComponent.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/esbo_etc/classes/optical_component/AOpticalComponent.py b/esbo_etc/classes/optical_component/AOpticalComponent.py index b640b55..94124d1 100644 --- a/esbo_etc/classes/optical_component/AOpticalComponent.py +++ b/esbo_etc/classes/optical_component/AOpticalComponent.py @@ -6,6 +6,7 @@ import astropy.units as u from astropy.modeling.models import BlackBody from typing import Union, Callable, Tuple from ..Entry import Entry +import os class AOpticalComponent(IRadiant): @@ -66,7 +67,7 @@ class AOpticalComponent(IRadiant): logger.info("Calculating signal for class '" + self.__class__.__name__ + "'.") signal = self._propagate(signal) * (1 - self.__obstruction) obstruction = obstruction + self.__obstruction - logger.debug(signal) + logger.debug(os.linesep + str(signal)) return signal, obstruction def calcBackground(self) -> SpectralQty: @@ -88,7 +89,7 @@ class AOpticalComponent(IRadiant): else: background = parent * (1. - self.__obstruction) background = background + self._ownNoise() - logger.debug(background) + logger.debug(os.linesep + str(background)) return background def _propagate(self, rad: SpectralQty) -> SpectralQty: