From 763556544c1c85a0562e25f4c591c19ffb1f167f Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Fri, 17 Apr 2020 13:05:22 +0200 Subject: [PATCH] add wl_bins as Entry object --- esbo_etc/classes/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esbo_etc/classes/config.py b/esbo_etc/classes/config.py index 445266f..fd2da6b 100644 --- a/esbo_etc/classes/config.py +++ b/esbo_etc/classes/config.py @@ -127,6 +127,6 @@ class Configuration(object): wl_delta = self.conf.common.wl_delta() else: wl_delta = self.conf.common.wl_min() / self.conf.common.res() - setattr(self.conf.common, 'wl_bins', np.arange(self.conf.common.wl_min().to(u.micron).value, - self.conf.common.wl_max().to(u.micron).value, - wl_delta.to(u.micron).value) * u.micron) + setattr(self.conf.common, 'wl_bins', + Entry(val=np.arange(self.conf.common.wl_min().to(u.nm).value, self.conf.common.wl_max().to(u.nm).value, + wl_delta.to(u.nm).value) << u.nm))