DAQ: update to automation parameters. Added a flag for low res data to make det dist switch quicker. Needs a panel in the GUI!
This commit is contained in:
1 parent
f857f8b8b7
commit
8b07cae1db
1 file changed
+11
-6
+11
-6
@@ -950,21 +950,26 @@ class AareDAQ:
|
||||
hex_string = secrets.token_hex(3) # 3 bytes = 6 hex characters
|
||||
print(hex_string.upper())
|
||||
# self.__ml_bounding_box(sample.db_id, f"ml_{geom.omega_deg:.2f}deg")
|
||||
low_resolution_flag=False #False for high resolution
|
||||
if low_resolution_flag:
|
||||
det_dist = 300.0
|
||||
else:
|
||||
det_dist = 110.0
|
||||
if self.__auto_center(RasterGridRequest(
|
||||
exp_time_s=0.01,
|
||||
exp_time_s=0.02,
|
||||
file_prefix=sample_prefix + f"_{hex_string}",
|
||||
smargon= SmargonCoordinate(),
|
||||
n_x=1,
|
||||
n_y=1,
|
||||
dtz=110.0,
|
||||
grid_size_mm=Coordinate(x=geom.beam_size_mm.x * 0.8, y=geom.beam_size_mm.y * 0.8),
|
||||
dtz=det_dist,
|
||||
grid_size_mm=Coordinate(x=geom.beam_size_mm.x * 0.5, y=geom.beam_size_mm.y * 0.5),
|
||||
omega_deg=0
|
||||
)):
|
||||
self.__rotation( RotationScanRequest(start_omega_deg=0,
|
||||
dtz=110.0,
|
||||
dtz=det_dist,
|
||||
file_prefix=sample_prefix + f"_{hex_string}",
|
||||
exp_time_s=0.003,
|
||||
incr_omega_deg=0.4,
|
||||
exp_time_s=0.04,
|
||||
incr_omega_deg=0.2,
|
||||
steps=900,))
|
||||
else:
|
||||
self.__aare.axc_failed(sample)
|
||||
|
||||
Reference in new issue
Block a user