lot a small steps...

This commit is contained in:
2022-08-16 18:45:26 +02:00
parent ed3502f002
commit aa9a2c9948
3 changed files with 53 additions and 34 deletions

View File

@@ -56,7 +56,11 @@ class AppCfg(QSettings):
#set default keys if not existing
if AppCfg.GEO_BEAM_SZ not in keys:
_log.warning(f'{AppCfg.GEO_BEAM_SZ} not defined. set default')
self.setValue(AppCfg.GEO_BEAM_SZ, [40, 20]) #([40, 20) -> tuples are not supported natively
self.setValue(AppCfg.GEO_BEAM_SZ, [30.2, 25.6]) #([40, 20) -> tuples are not supported natively
if AppCfg.GEO_BEAM_POS not in keys:
_log.warning(f'{AppCfg.GEO_BEAM_POS} not defined. set default')
self.setValue(AppCfg.GEO_BEAM_POS, [23.4, -54.2]) # beam position relativ to optical center in mm
if AppCfg.GEO_PIX2POS not in keys:
_log.warning(f'{AppCfg.GEO_OPT_CTR} not defined. calc default')