DAQ: Deconvolute beam mark / beam center
This commit is contained in:
1 parent
3988c345c9
commit
ca69bb0094
8 files changed
+82
-31
No files matched your search
+15
-8
@@ -389,7 +389,7 @@ class AareDAQ:
|
||||
zoom = self.__devs.zoom
|
||||
abr_pos = self.__cfg.abr_meas_pos
|
||||
return SampleGeometryModel(
|
||||
beam_location_pxl=self.__cfg.beam_center_coeff.apply(zoom),
|
||||
beam_location_pxl=self.__cfg.beam_mark_coeff.apply(zoom),
|
||||
pixel_in_mm=self.__cfg.pixel_to_mm(zoom),
|
||||
omega_deg=self.__devs.aerotech.omega,
|
||||
smargon=self.__devs.smargon.readback,
|
||||
@@ -399,11 +399,18 @@ class AareDAQ:
|
||||
y=self.__devs.gmy.value - abr_pos.y,
|
||||
z=self.__devs.gmz.value - abr_pos.z,
|
||||
),
|
||||
aerotech_meas=self.__devs.abr_pos,
|
||||
detector_radius_mm = 115.0 # PILATUS4 2M / JUNGFRAU 9M
|
||||
aerotech_meas=self.__devs.abr_pos
|
||||
)
|
||||
|
||||
def get_beam_center(self):
|
||||
@property
|
||||
def beam_center(self) -> Tuple[float, float]:
|
||||
return self.__cfg.beam_center
|
||||
|
||||
@beam_center.setter
|
||||
def beam_center(self, val: Tuple[float, float]):
|
||||
self.__cfg.beam_center = val
|
||||
|
||||
def get_beam_mark(self):
|
||||
return self.__cfg.get_beam_mark(self.__devs.zoom)
|
||||
|
||||
def listen_changes(self) -> redis.client.PubSub:
|
||||
@@ -603,10 +610,10 @@ class AareDAQ:
|
||||
)
|
||||
)
|
||||
|
||||
self.__rotation(
|
||||
RotationScanRequest(total_omega_deg=360,
|
||||
start_omega_deg=0,
|
||||
total_time_sec=18))
|
||||
#self.__rotation(
|
||||
# RotationScanRequest(total_omega_deg=360,
|
||||
# start_omega_deg=0,
|
||||
# total_time_sec=18))
|
||||
|
||||
self.save_screenshot_db(sample.db_id, "after_dc.jpeg")
|
||||
|
||||
|
||||
Reference in new issue
Block a user