check magnet I at PIF

This commit is contained in:
2024-02-20 14:05:32 +01:00
parent 89fd5f2a02
commit 7e4fc0360f

View File

@@ -571,11 +571,13 @@ class GUIHeader(QWidget):
for key, pf in self.pframe_matrix["PRE-PIF"][3].items():
pf.setStyleSheet("background-color:{0};".format(color))
amd2 = self.cafe.getCache("AMD2:SOL:2")
val_amd2 = self.cafe.getCache("AMD2:SOL:2")
if amd2 is not None and amd2 > 0.0:
if val_amd2 is not None and val_amd2 > 0.0:
color = "green"
else:
color = self.pf_bgcolor()
for i in range(5, 8):
pf = self.pframe_matrix["O2"][5][i]
pf.setStyleSheet("background-color:{0};".format(color))