Minor improvements
This commit is contained in:
parent
5ad961201e
commit
eb0bd71813
@ -97,8 +97,8 @@ class Configuration(object):
|
|||||||
if self.conf.common.res().unit == u.dimensionless_unscaled:
|
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())
|
wl_delta = (self.conf.common.wl_min() + self.conf.common.wl_max()) / (2 * self.conf.common.res())
|
||||||
else:
|
else:
|
||||||
wl_delta = (self.conf.common.wl_min() + self.conf.common.wl_max()) / 2 * (
|
wl_delta = (self.conf.common.wl_min() + self.conf.common.wl_max()) / (
|
||||||
self.conf.common.res() / c).decompose()
|
2 * c / self.conf.common.res()).decompose()
|
||||||
setattr(self.conf.common, 'wl_delta', Entry(val=wl_delta))
|
setattr(self.conf.common, 'wl_delta', Entry(val=wl_delta))
|
||||||
setattr(self.conf.common, 'wl_bins',
|
setattr(self.conf.common, 'wl_bins',
|
||||||
Entry(val=np.append(np.arange(self.conf.common.wl_min().to(u.nm).value,
|
Entry(val=np.append(np.arange(self.conf.common.wl_min().to(u.nm).value,
|
||||||
|
Loading…
Reference in New Issue
Block a user