Loading astrort/configure/check_configuration.py +2 −1 Original line number Diff line number Diff line Loading @@ -67,11 +67,12 @@ class CheckConfiguration(): return self def check_mapper(self): keys = ['exposure', 'smooth', 'center', 'region', 'output'] keys = ['exposure', 'smooth', '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']['center']) in ['pointing', 'source'] assert type(self.conf['mapper']['plot']) == bool assert type(self.conf['mapper']['region']) == bool assert type(self.conf['mapper']['output']) == str return self No newline at end of file astrort/configure/test.yml +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ mapper: exposure: 10 smooth: 1 center: pointing plot: false region: false output: /data01/homes/dipiano/astroRT/astrort/testing/tmp Loading Loading
astrort/configure/check_configuration.py +2 −1 Original line number Diff line number Diff line Loading @@ -67,11 +67,12 @@ class CheckConfiguration(): return self def check_mapper(self): keys = ['exposure', 'smooth', 'center', 'region', 'output'] keys = ['exposure', 'smooth', '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']['center']) in ['pointing', 'source'] assert type(self.conf['mapper']['plot']) == bool assert type(self.conf['mapper']['region']) == bool assert type(self.conf['mapper']['output']) == str return self No newline at end of file
astrort/configure/test.yml +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ mapper: exposure: 10 smooth: 1 center: pointing plot: false region: false output: /data01/homes/dipiano/astroRT/astrort/testing/tmp Loading