Skip to content

Commit

Permalink
Pressure jump cell corrected enums extend str and Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
barnettwilliam committed Jul 29, 2024
1 parent 98f061c commit 1538a5b
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/dodal/devices/pressure_jump_cell.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
from enum import Enum
from ophyd_async.core import ConfigSignal, StandardReadable
from ophyd_async.epics.signal import epics_signal_r, epics_signal_rw


class PressureJumpCellPumpMode:
class PressureJumpCellPumpMode(str, Enum):
MANUAL = "Manual"
AUTO_PRESSURE = "Auto Pressure"
AUTO_POSITION = "Auto Position"


class PressureJumpCellBusyStatus:
class PressureJumpCellBusyStatus(str, Enum):
IDLE = "Idle"
BUSY = "Busy"


class PressureJumpCellTimerState:
class PressureJumpCellTimerState(str, Enum):
TIMEOUT = "TIMEOUT"
COUNTDOWN = "COUNTDOWN"


class PressureJumpCellStopValue:
class PressureJumpCellStopValue(str, Enum):
CONTINUE = "CONTINUE"
STOP = "STOP"


class PressureJumpCellValveControlRequest:
class PressureJumpCellValveControlRequest(str, Enum):
OPEN = "Open"
CLOSE = "Close"
RESET = "Reset"
Expand All @@ -34,15 +35,15 @@ class PressureJumpCellValveControlRequest:
NONE2 = ""


class PressureJumpCellPumpMotorControlRequest:
class PressureJumpCellPumpMotorControlRequest(str, Enum):
ENABLE = "Enable"
DISABLE = "Disable"
RESET = "Reset"
FORWARD = "Forward"
REVERSE = "Reverse"


class PressureJumpCellPumpMotorDirection:
class PressureJumpCellPumpMotorDirection(str, Enum):
ZERO = "0"
FORWARD = "Forward"
REVERSE = "Reverse"
Expand All @@ -53,7 +54,7 @@ class PressureJumpCellPumpMotorDirection:
SEVEN = "7"


class PressureJumpCellValveState:
class PressureJumpCellValveState(str, Enum):
FAULT = "Fault"
OPEN = "Open"
OPENING = "Opening"
Expand All @@ -63,7 +64,7 @@ class PressureJumpCellValveState:
NONE6 = ""


class PressureJumpCellFastValveState:
class PressureJumpCellFastValveState(str, Enum):
FAULT = "Fault"
OPEN = "Open"
OPEN_ARMED = "Open Armed"
Expand All @@ -73,7 +74,7 @@ class PressureJumpCellFastValveState:
NONE6 = ""


class PressureJumpCellLimitSwitch:
class PressureJumpCellLimitSwitch(str, Enum):
OFF = "Off"
ON = "On"

Expand Down

0 comments on commit 1538a5b

Please sign in to comment.