Check output path

This commit is contained in:
Lukas Klass 2020-05-18 10:56:45 +02:00
parent 2087ca6922
commit 4ff9de259c

View File

@ -137,7 +137,10 @@ class Configuration(object):
if hasattr(self.conf.common, "jitter_sigma"):
mes = self.conf.common.jitter_sigma.check_quantity("val", u.arcsec)
mes is not None and error("Configuration check: common -> jitter_sigma: " + mes)
if not hasattr(self.conf.common, "output_path"):
if hasattr(self.conf.common, "output_path"):
mes = self.conf.common.output_path.check_path("val")
mes is not None and error("Configuration check: common -> output_path: " + mes)
else:
setattr(self.conf.common, "output_path", Entry(val="."))
if hasattr(self.conf.common, "exposure_time"):
mes = self.conf.common.exposure_time.check_quantity("val", u.s)