style: wrap shutter flag f-strings for ruff format
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 / test (3.13) (pull_request) Successful in 1m5s
CI / lint (pull_request) Failing after 1m14s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m6s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m30s
CI / test (3.11) (pull_request) Successful in 1m45s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m41s
CI / test (3.12) (pull_request) Successful in 1m53s
CI / test-with-coverage (pull_request) Successful in 2m17s
CI / coverage-analysis (pull_request) Successful in 3s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-17 14:57:30 +02:00
co-authored by Claude Fable 5
parent 01d7460b5a
commit 7f858509da
+6 -2
View File
@@ -87,9 +87,13 @@ class MonochromatorPanel(QWidget):
if self._shutter_open is None:
text = "Fast Shutter: —"
elif self._shutter_open:
text = f"""Fast Shutter: <span style="color: {self._colors["alert"]} ; "> Open ☢️ </span>"""
text = (
f"""Fast Shutter: <span style="color: {self._colors["alert"]} ; "> Open ☢️ </span>"""
)
else:
text = f"""Fast Shutter: <span style="color: {self._colors["ok"]} ; "> Closed 🚪 </span>"""
text = (
f"""Fast Shutter: <span style="color: {self._colors["ok"]} ; "> Closed 🚪 </span>"""
)
if self.shutter_status_label.text() != text:
self.shutter_status_label.setText(text)