Minor improvements

This commit is contained in:
Lukas Klass 2020-10-06 11:37:34 +02:00
parent 5ad961201e
commit eb0bd71813

View File

@ -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,