From c2a7f97ec4c13b910ede0ae926e83a2095bf6afc Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Wed, 22 Apr 2020 10:36:38 +0200 Subject: [PATCH] Include end wavelength --- esbo_etc/classes/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/esbo_etc/classes/config.py b/esbo_etc/classes/config.py index 089eadb..b96ea87 100644 --- a/esbo_etc/classes/config.py +++ b/esbo_etc/classes/config.py @@ -134,5 +134,6 @@ class Configuration(object): else: wl_delta = self.conf.common.wl_min() / self.conf.common.res() 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)) + Entry(val=np.append(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), + self.conf.common.wl_max().to(u.nm).value) << u.nm))