Fix Queues

This commit is contained in:
gac-ISS
2023-01-11 10:39:12 +01:00
parent c2b9b275c7
commit 2fb24afec1
8 changed files with 572 additions and 394 deletions
+4 -1
View File
@@ -1,6 +1,7 @@
if get_exec_pars().debug:
print "Setting debug parameters"
REGIONS = [[523.0, 527.0, 2.0], [527.0, 535.0, 4.0], [535.0, 558.0, 2.0]]
PASSES = 1
NAME = None
FILE = None
@@ -10,9 +11,11 @@ if FILE:
with open(FILE) as json_file:
cfg = json.load(json_file)
NAME , REGIONS= cfg[0][0][0], cfg[1]
PASSES = 1 if len(cfg<3) else cfg[2]
print "FILE: ", FILE
print "NAME: ", NAME
print "REGIONS: ", REGIONS
print "PASSES: ", PASSES
IOC_AUTO_SAVE = False
DUMMY_TRIGGER = True
@@ -34,7 +37,7 @@ if IOC_AUTO_SAVE:
capture.write(1)
try:
rscan(energy, sensors, REGIONS, latency = 0.0, before_read=before_read, after_read=after_readout, name = NAME)
rscan(energy, sensors, REGIONS, latency = 0.0, passes=PASSES, split=True, before_read=before_read, after_read=after_readout, name = NAME)
finally:
if IOC_AUTO_SAVE:
capture.write(0)