This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#Wed Dec 17 09:47:43 CET 2025
|
#Wed Dec 17 09:55:52 CET 2025
|
||||||
DaySequentialNumber=6
|
DaySequentialNumber=8
|
||||||
FileSequentialNumber=633
|
FileSequentialNumber=635
|
||||||
LastRunDate=251217
|
LastRunDate=251217
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
if (get_exec_pars().source == CommandSource.ui) and (get_exec_pars().script == "EigerAbsSpec") :
|
if (get_exec_pars().source == CommandSource.ui) and (get_exec_pars().script == "EigerAbsSpec") :
|
||||||
ROI = {"Region1": [10,5,20, 10], "Region2": [20,15,20, 10]}
|
ROI = {"Region1": [10,5,20, 10], "Region2": [20,15,20, 10]}
|
||||||
SAVE_SPECTRUM = True
|
SAVE_SPECTRUM = True
|
||||||
SAVE_IMAGES = False
|
SAVE_IMAGES = True
|
||||||
WITH_I0 = True
|
WITH_I0 = True
|
||||||
SWITCH_POL = False
|
SWITCH_POL = False
|
||||||
EXPOSURE = 1.0
|
EXPOSURE = 1.0
|
||||||
AVERAGE = 1
|
AVERAGE = 1
|
||||||
NUMBER_SCANS =1
|
NUMBER_SCANS = 2
|
||||||
RANGES = [[600.0, 605.0, 1.0]]
|
RANGES = [[600.0, 605.0, 1.0]]
|
||||||
DRIFT_CORRECTION = True
|
DRIFT_CORRECTION = True
|
||||||
|
|
||||||
@@ -67,18 +67,12 @@ def grab_image(position, scan):
|
|||||||
global av
|
global av
|
||||||
av = average_eiger_frames(AVERAGE, roi=None, wait_next=True)
|
av = average_eiger_frames(AVERAGE, roi=None, wait_next=True)
|
||||||
if SAVE_IMAGES:
|
if SAVE_IMAGES:
|
||||||
#filename = get_exec_pars().path + "/" + str(scan.currentPass) + "/s" + "{seq}%03d" + "_" + ("%03d.tif" % scan.recordIndex)
|
|
||||||
#filename = Setup.expandPath(filename)
|
|
||||||
#print filename
|
|
||||||
metadata = get_diags() if SAVE_DIAGS else {}
|
metadata = get_diags() if SAVE_DIAGS else {}
|
||||||
#save_as_tiff(av, filename, metadata=metadata)
|
|
||||||
FormatTIFF.setMetadata(metadata)
|
FormatTIFF.setMetadata(metadata)
|
||||||
|
|
||||||
if DRIFT_CORRECTION and (calc_roi is not None):
|
if DRIFT_CORRECTION and (calc_roi is not None):
|
||||||
global ref_image
|
global ref_image
|
||||||
#filename = get_exec_pars().path + "/" + str(scan.currentPass) + "_corr/cs" + "{seq}%03d" + "_" + ("%03d.tif" % scan.recordIndex)
|
|
||||||
scan_name = get_data_manager().getScanPath(scan)
|
scan_name = get_data_manager().getScanPath(scan)
|
||||||
filename = get_exec_pars().path + "/" + scan_name + "_corr_" + ("%04d.tiff" % (scan.recordIndex-1))
|
filename = get_exec_pars().path + "/" + scan_name + "_corr_" + ("%04d.tiff" % (scan.recordIndexInPass-1))
|
||||||
filename = Setup.expandPath(filename)
|
filename = Setup.expandPath(filename)
|
||||||
if ref_image is None:
|
if ref_image is None:
|
||||||
ref_image = av
|
ref_image = av
|
||||||
|
|||||||
Reference in New Issue
Block a user