fix: cached read from BEC client devices
CI / lint (pull_request) Successful in 39s
CI / test (3.12) (pull_request) Successful in 1m0s
CI / test (3.13) (pull_request) Successful in 1m4s
CI / test (3.14) (pull_request) Successful in 1m7s
CI / test-with-coverage (pull_request) Successful in 1m35s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m48s
CI / coverage-analysis (pull_request) Failing after 5s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 3m42s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 3m38s
Docs build and publish / docker (push) Successful in 4s
CI / lint (push) Successful in 41s
CI / test (3.12) (push) Canceled after 41s
CI / test (3.13) (push) Canceled after 37s
CI / test (3.14) (push) Canceled after 36s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 32s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 31s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 27s
CI / test-with-coverage (push) Canceled after 26s
CI / coverage-analysis (push) Canceled after 0s
Build and Publish / release (push) Successful in 19s

This commit was merged in pull request #187.
This commit is contained in:
2026-09-01 11:24:45 +02:00
parent e8bd2f59c6
commit db6b09fa24
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -275,11 +275,11 @@ class BeamlineDevices:
# Detector Z
@property
def dtz(self) -> float:
return self._dtz.user_setpoint.get()
return self._dtz.user_setpoint.get(cached=True)
@property
def dty(self) -> float:
return self._dty.user_setpoint.get()
return self._dty.user_setpoint.get(cached=True)
@dtz.setter
def dtz(self, value: float):
+1 -1
View File
@@ -530,7 +530,7 @@ class BECClientWorker:
@property
def ring_current(self) -> float:
try:
return self._ring_current.get()
return self._ring_current.get(cached=True)
except (RPCError, ScanRequestError):
return 0