fix: do not multiply screening request by steps
CI / lint (push) Skipped
CI / test (3.11) (push) Skipped
CI / test (3.12) (push) Skipped
CI / test (3.13) (push) Skipped
CI / test-with-beamline-plugins (pxi_bec) (push) Skipped
CI / test-with-beamline-plugins (pxii_bec) (push) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (push) Skipped
CI / lint (pull_request) Successful in 37s
CI / test (3.12) (pull_request) Successful in 1m3s
CI / test (3.13) (pull_request) Successful in 1m8s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m9s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m10s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m22s
CI / test-with-coverage (pull_request) Successful in 1m43s
CI / coverage-analysis (pull_request) Failing after 3s
CI / test (3.11) (pull_request) Successful in 54s

This commit is contained in:
2026-08-20 11:49:22 +02:00
parent 002dba7742
commit 8e81830375
+3 -1
View File
@@ -39,9 +39,11 @@ class RotationService:
self.ctx.deps.devs.set_dtz(request.dtz, wait=True)
if request.screening:
if request.wedge_omega_deg is None:
raise ValueError("Must supply a wedge angle for screening requests")
self.logger.debug(f"Starting screening scan with {request.steps} steps")
self.ctx.deps.devs.aerotech.screening_scan(
rotation_deg=request.steps * request.incr_omega_deg,
rotation_deg=request.incr_omega_deg,
wedge_deg=request.wedge_omega_deg,
time_sec=total_time,
steps=request.steps,