fix: move exptime validation in front of all rotation scans

This commit is contained in:
2026-07-13 16:06:38 +02:00
parent 67ce30db8d
commit c267da5ec0
2 changed files with 3 additions and 3 deletions
+3
View File
@@ -1398,6 +1398,9 @@ class AareDAQ:
Returns:
CompletedRotationScan result or None if failed
"""
if rotation_request.exp_time_s < 0.004:
logger.warning("Exposure time too short for PXII rotation scan")
rotation_request.exp_time_s = 0.004
try:
return self._create_rotation_service().run(rotation_request)
except JFJochCommunicationError as e:
@@ -25,9 +25,6 @@ class RotationService:
def _execute_scan(self, request: RotationScanRequest) -> CompletedRotationScan:
omega_start = self.ctx.deps.devs.aerotech_omega
if request.exp_time_s < 0.004:
self.logger.warning("Exposure time too short for PXII rotation scan")
request.exp_time_s = 0.004
total_time = request.exp_time_s * request.steps
sample = self.ctx.sample