fix: pitch scan message for correct beamline
CI / lint (pull_request) Successful in 44s
CI / test (3.11) (pull_request) Successful in 1m4s
CI / test (3.13) (pull_request) Successful in 1m1s
CI / test (3.12) (pull_request) Successful in 1m8s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m7s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m14s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m26s
CI / test-with-coverage (pull_request) Successful in 1m33s
CI / coverage-analysis (pull_request) Failing after 3s
CI / lint (push) Successful in 35s
Docs build and publish / docker (push) Successful in 18s
CI / test (3.11) (push) Canceled after 46s
CI / test (3.12) (push) Canceled after 42s
CI / test (3.13) (push) Canceled after 41s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 37s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 36s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 32s
CI / test-with-coverage (push) Canceled after 31s
CI / coverage-analysis (push) Canceled after 0s
Build and Publish / release (push) Successful in 37s

This commit was merged in pull request #151.
This commit is contained in:
2026-08-20 15:47:55 +02:00
parent 3ac0087c30
commit 4f5cb08319
+6 -4
View File
@@ -377,16 +377,18 @@ class BECClientWorker:
self.macros.mono_pitch_scan(plot)
except Exception as e:
raise self._bec_error(e, operation="mono_pitch_scan", tags=["mono_pitch_scan"]) from e
if self.beamline is MXBeamline.X06DA:
addtional_text = [f"New dcm_pitch position: {self.dev.dcm_pitch.position:5f}"]
if self.beamline is MXBeamline.X10SA:
additional_text = [f"New dcm_pitch position: {self.dev.dcm_pitch.position:5f}"]
elif self.beamline is MXBeamline.X06DA:
additional_text = [f"New dcm_theta2 position: {self.dev.dccm_theta2.position:5f}"]
else:
addtional_text = [f"New dcm_theta2 position: {self.dev.dccm_theta2.position:5f}"]
additional_text = ["What beamline did you run this on???"]
self.scilog_msg(
message="Mono pitch scan completed",
bold=True,
color="green",
tags=["mono_pitch_scan"],
additonal_text=addtional_text,
additonal_text=additional_text,
)
def check_current_energy(self):