style: format
CI / lint (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) Failing after 27s
CI / test (3.12) (pull_request) Failing after 1m8s
CI / test (3.14) (pull_request) Failing after 1m7s
CI / test (3.13) (pull_request) Failing after 1m10s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Failing after 1m21s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Failing after 1m24s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Failing after 1m22s
CI / test-with-coverage (pull_request) Failing after 1m30s
CI / coverage-analysis (pull_request) Skipped

This commit is contained in:
David Perl
2026-09-09 18:03:10 +02:00
parent acdee693ce
commit d406e13103
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -214,7 +214,7 @@ class BeamlineDevices:
try:
with suppress_output():
return self._dispatch.bec_macros.full_flux_ph_per_s()
except Exception as e:
except Exception as e: #noqa
logger.error(f"Could not get flux from BEC macro {e}")
return 9.99e12
+3 -4
View File
@@ -169,18 +169,17 @@ class StatusBar(QStatusBar):
def update_daq_status(self, status: DAQStatusModel):
try:
self._status = status
if status.bl.flux_ph_s is None:
if status.bl.flux_ph_s is None or status.bl.transmission is None:
self.flux.set_value("0")
else:
try:
num = f"{status.bl.flux_ph_s:.2E}"
num = f"{(status.bl.flux_ph_s / status.bl.transmission):.2E}"
mod, exp = num.split("E")
self.flux.set_value(f"{mod} x 10<sup>{int(exp)}</sup>")
except Exception as e:
except Exception as e: #noqa
logger.error(f"Error parsing flux result: {e}")
self.flux.set_value(f"{status.bl.flux_ph_s:.2E}")
if status.bl.transmission is None:
self.transmission.set_value("(moving)")
else: