Script execution

This commit is contained in:
gac-x03da
2019-01-25 12:57:31 +01:00
parent f629f0b453
commit 1215f745fc

View File

@@ -40,11 +40,13 @@ import ch.psi.pshell.device.ReadonlyRegisterBase as ReadonlyRegisterBase
import ch.psi.pshell.device.ReadonlyRegister.ReadonlyRegisterArray as ReadonlyRegisterArray
import ch.psi.pshell.device.ReadonlyRegister.ReadonlyRegisterMatrix as ReadonlyRegisterMatrix
global ExitSlit
def check_region(region):
"""
check region dictionary items and apply defaults where necessary
"""
global ExitSlit
dir()
region['fixed'] = 'efix' in region
if region['fixed']:
region['elo'] = region['efix']