Loading astrort/configure/check_configuration.py +2 −1 Original line number Diff line number Diff line Loading @@ -67,10 +67,11 @@ class CheckConfiguration(): return self def check_mapper(self): keys = ['exposure', 'smooth', 'center', 'plot', 'region', 'output'] keys = ['exposure', 'smooth', 'pixelsize', 'center', 'plot', 'region', 'output'] assert self.conf['mapper'].keys() == keys assert type(self.conf['mapper']['exposure']) == int assert type(self.conf['mapper']['smooth']) == (float or int) assert type(self.conf['mapper']['pixelsize']) == (float or int) assert type(self.conf['mapper']['center']) in ['pointing', 'source'] assert type(self.conf['mapper']['plot']) == bool assert type(self.conf['mapper']['region']) == bool Loading astrort/configure/test.yml +1 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ simulator: mapper: exposure: 10 smooth: 1 pixelsize: 0.02 center: pointing plot: false region: false Loading Loading
astrort/configure/check_configuration.py +2 −1 Original line number Diff line number Diff line Loading @@ -67,10 +67,11 @@ class CheckConfiguration(): return self def check_mapper(self): keys = ['exposure', 'smooth', 'center', 'plot', 'region', 'output'] keys = ['exposure', 'smooth', 'pixelsize', 'center', 'plot', 'region', 'output'] assert self.conf['mapper'].keys() == keys assert type(self.conf['mapper']['exposure']) == int assert type(self.conf['mapper']['smooth']) == (float or int) assert type(self.conf['mapper']['pixelsize']) == (float or int) assert type(self.conf['mapper']['center']) in ['pointing', 'source'] assert type(self.conf['mapper']['plot']) == bool assert type(self.conf['mapper']['region']) == bool Loading
astrort/configure/test.yml +1 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ simulator: mapper: exposure: 10 smooth: 1 pixelsize: 0.02 center: pointing plot: false region: false Loading