From eb0bd71813f96473b9f6c977041925ee897f176e Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Tue, 6 Oct 2020 11:37:34 +0200 Subject: [PATCH] Minor improvements --- esbo_etc/classes/Config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esbo_etc/classes/Config.py b/esbo_etc/classes/Config.py index b6dddcc..b2f2931 100644 --- a/esbo_etc/classes/Config.py +++ b/esbo_etc/classes/Config.py @@ -97,8 +97,8 @@ class Configuration(object): if self.conf.common.res().unit == u.dimensionless_unscaled: wl_delta = (self.conf.common.wl_min() + self.conf.common.wl_max()) / (2 * self.conf.common.res()) else: - wl_delta = (self.conf.common.wl_min() + self.conf.common.wl_max()) / 2 * ( - self.conf.common.res() / c).decompose() + wl_delta = (self.conf.common.wl_min() + self.conf.common.wl_max()) / ( + 2 * c / self.conf.common.res()).decompose() setattr(self.conf.common, 'wl_delta', Entry(val=wl_delta)) setattr(self.conf.common, 'wl_bins', Entry(val=np.append(np.arange(self.conf.common.wl_min().to(u.nm).value,