debug trigger wait
This commit is contained in:
@@ -128,10 +128,18 @@ class Trigger(PSIDeviceBase, TriggerControl):
|
||||
logger.info(
|
||||
f"Erase and start acquiring for {falcon.name} at {time.time() - time_started}"
|
||||
)
|
||||
# pylint: disable=protected-access
|
||||
CompareStatus(falcon.acquiring, FalconAcquiringStatus.ACQUIRING).wait(
|
||||
timeout=self._falcon_ready_timeout
|
||||
)
|
||||
try:
|
||||
# pylint: disable=protected-access
|
||||
CompareStatus(falcon.acquiring, FalconAcquiringStatus.ACQUIRING).wait(
|
||||
timeout=self._falcon_ready_timeout
|
||||
)
|
||||
except Exception as exc:
|
||||
logger.error(
|
||||
f"Falcon did not start acquiring. Current state {falcon.acquiring.get()}. "
|
||||
)
|
||||
raise TimeoutError(
|
||||
f"Falcon did not start acquiring within {self._falcon_ready_timeout} seconds."
|
||||
) from exc
|
||||
|
||||
status_smpl = TransitionStatus(self.smpl_done, [SamplingDone.RUNNING, SamplingDone.DONE])
|
||||
logger.info(f"Triggering sampling for {self.name} at {time.time() - time_started}")
|
||||
|
||||
Reference in New Issue
Block a user