refactor: add logs for on_stage
This commit is contained in:
@@ -278,6 +278,7 @@ class DDG1(PSIDeviceBase, DelayGeneratorCSAXS):
|
||||
- We set the delay pairs ef to be triggered after the shutter closes with a width of 1us to trigger the MCS card.
|
||||
- Finally, we add a short sleep to ensure that the IOC and DDG HW process the values properly.
|
||||
"""
|
||||
logger.info(f"DDG {self.name} on_stage called.")
|
||||
self.scan_parameters = fetch_scan_info(self.scan_info)
|
||||
start_time = time.time()
|
||||
|
||||
|
||||
@@ -173,6 +173,7 @@ class DDG2(PSIDeviceBase, DelayGeneratorCSAXS):
|
||||
This logic is robust for step scans as well as fly scans, as the DDG2 is triggered by the DDG1
|
||||
through the EXT/EN channel.
|
||||
"""
|
||||
logger.info(f"DDG {self.name} on_stage called.")
|
||||
start_time = time.time()
|
||||
self.scan_parameters = fetch_scan_info(self.scan_info)
|
||||
########################################
|
||||
|
||||
@@ -343,6 +343,7 @@ class MCSCardCSAXS(PSIDeviceBase, MCSCard):
|
||||
- Clear any events and buffers related to async data emission. This includes '_omit_mca_callbacks',
|
||||
'_start_monitor_async_data_emission', '_scan_done_callbacks', and '_current_data'.
|
||||
"""
|
||||
logger.info(f"MCS Card {self.name} on_stage called.")
|
||||
start_time = time.time()
|
||||
self.scan_parameters = fetch_scan_info(self.scan_info)
|
||||
|
||||
|
||||
@@ -270,6 +270,7 @@ class Eiger(PSIDeviceBase):
|
||||
"""
|
||||
Hook called when staging the device. Information about the upcoming scan can be accessed from the scan_info object.
|
||||
"""
|
||||
logger.info(f"Device {self.name} on_stage called.")
|
||||
start_time = time.time()
|
||||
self.scan_parameters = fetch_scan_info(self.scan_info)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user