Skip to content

Commit

Permalink
Fixed beamavailable widget for different beamlines
Browse files Browse the repository at this point in the history
  • Loading branch information
vshekar committed Sep 20, 2024
1 parent 7526591 commit 7a605e1
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions gui/control_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2217,12 +2217,20 @@ def processRingCurrent(self, ringCurrentVal):
function is processThreClickCentering
'''
def processThreeClickCentering(self, beamAvailVal):
if beamAvailVal == '0':
self.beamAvailLabel.setText("Beam Available")
self.beamAvailLabel.setStyleSheet("background-color: #99FF66;")
if daq_utils.beamline == 'nyx':
if beamAvailVal == '0':
self.beamAvailLabel.setText("Beam Available")
self.beamAvailLabel.setStyleSheet("background-color: #99FF66;")
else:
self.beamAvailLabel.setText(beamAvailVal)
self.beamAvailLabel.setStyleSheet("background-color: yellow")
else:
self.beamAvailLabel.setText(beamAvailVal)
self.beamAvailLabel.setStyleSheet("background-color: yellow")
if beamAvailVal == "1":
self.beamAvailLabel.setText("Beam Available")
self.beamAvailLabel.setStyleSheet("background-color: #99FF66;")
elif beamAvailVal == "0":
self.beamAvailLabel.setText("No Beam")
self.beamAvailLabel.setStyleSheet("background-color: red")

def processSampleExposed(self, sampleExposedVal):
if int(sampleExposedVal) == 1:
Expand Down

0 comments on commit 7a605e1

Please sign in to comment.