Closedown

This commit is contained in:
gac-x03da
2019-11-23 18:36:33 +01:00
parent fe79204600
commit 0a673f6e25
5 changed files with 20 additions and 5 deletions
@@ -96,6 +96,8 @@ def check_region(region):
if 'cis' not in region:
region['cis'] = False
print("region {0}: setting default cis = {1}".format(region['name'], region['cis']))
MonoGrating.
class SpectrumReader(ReadonlyRegisterBase, ReadonlyRegisterArray):
def initialize(self):
+2 -2
View File
@@ -47,12 +47,12 @@ REG1 = {'name': 'VB1', 'elo': 104.3, 'ehi': 105.5, 'estep': 0.005, 'epass': 10.,
#REG2 = {'name': 'VB2', 'elo': 104.3, 'ehi': 105.5, 'estep': 0.005, 'epass': 10., 'tstep': 0.25, 'iter': 1, 'cis': False}
def indexed_dict(index):
return {'name': 'VB'+str(index), 'elo': 104.3, 'ehi': 105.5, 'estep': 0.005, 'epass': 10., 'tstep': 0.1, 'iter': 1, 'cis': False}
return {'name': 'VB'+str(index), 'elo': 104.3, 'ehi': 105.6, 'estep': 0.005, 'epass': 10., 'tstep': 0.5, 'iter': 1, 'cis': False}
# list of region dictionaries to execute at each scan position
#REGIONS = [REG1]
REGIONS = [indexed_dict(i) for i in range(1,3)]
REGIONS = [indexed_dict(i) for i in range(0,120)]
# close beam shutter and turn off analyser at the end of the scan
CLOSE_SHUTTER_AT_END = False