GUI: tidied up status_bar.py state handling.
This commit is contained in:
@@ -93,22 +93,22 @@ class StatusBar(QStatusBar):
|
||||
else:
|
||||
self.pgroup_label.setText(f"Inactive p-group ")
|
||||
|
||||
state = status.state
|
||||
if state == BeamlineStateEnum.SampleExchange:
|
||||
stateEnum = status.state
|
||||
if stateEnum == BeamlineStateEnum.SampleExchange:
|
||||
state = "Sample exchange"
|
||||
elif state == BeamlineStateEnum.SampleAlignment:
|
||||
elif stateEnum == BeamlineStateEnum.SampleAlignment:
|
||||
state = "Sample alignment"
|
||||
elif state == BeamlineStateEnum.DataCollection:
|
||||
elif stateEnum == BeamlineStateEnum.DataCollection:
|
||||
state = "Data collection"
|
||||
elif state == BeamlineStateEnum.DewarTransfer:
|
||||
elif stateEnum == BeamlineStateEnum.DewarTransfer:
|
||||
state = "Dewar transfer"
|
||||
elif state == BeamlineStateEnum.Maintenance:
|
||||
elif stateEnum == BeamlineStateEnum.Maintenance:
|
||||
state = "Maintenance"
|
||||
elif state == BeamlineStateEnum.Moving:
|
||||
elif stateEnum == BeamlineStateEnum.Moving:
|
||||
state = "Moving"
|
||||
elif state == BeamlineStateEnum.BeamLocation:
|
||||
elif stateEnum == BeamlineStateEnum.BeamLocation:
|
||||
state = "Beam location"
|
||||
elif state == BeamlineStateEnum.RobotSampleExchange:
|
||||
elif stateEnum == BeamlineStateEnum.RobotSampleExchange:
|
||||
state = "Robot sample exchange"
|
||||
else:
|
||||
state = "-"
|
||||
|
||||
Reference in New Issue
Block a user