fix: do not multiply screening request by steps
CI / lint (push) Successful in 32s
Docs build and publish / docker (push) Successful in 14s
CI / test (3.11) (push) Canceled after 36s
CI / test (3.12) (push) Canceled after 34s
CI / test (3.13) (push) Canceled after 14s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 11s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 26s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 24s
CI / test-with-coverage (push) Canceled after 21s
CI / coverage-analysis (push) Canceled after 0s
Build and Publish / release (push) Successful in 20s

This commit was merged in pull request #150.
This commit is contained in:
2026-08-20 12:13:05 +02:00
committed by perl_d
parent dd04a2fc89
commit 1756caba69
+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,