Skip to content

Commit

Permalink
Update pressure_jump_cell.py to use snake_case
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Nov 14, 2024
1 parent 4dd37b8 commit 1ed5229
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/dodal/devices/pressure_jump_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ def __init__(self, prefix: str, name: str = "") -> None:
super().__init__(name)

def set(self, value: ValveControlRequest | ValveOpenSeqRequest) -> AsyncStatus:
setStatus = None
set_status = None

if isinstance(value, ValveControlRequest):
setStatus = self.close.set(value)
set_status = self.close.set(value)
elif isinstance(value, ValveOpenSeqRequest):
setStatus = self.open.set(value)
set_status = self.open.set(value)

return setStatus
return set_status


class FastValveControl(StandardReadable):
Expand All @@ -178,14 +178,14 @@ def __init__(self, prefix: str, name: str = "") -> None:
super().__init__(name)

def set(self, value: FastValveControlRequest | ValveOpenSeqRequest) -> AsyncStatus:
setStatus = None
set_status = None

if isinstance(value, FastValveControlRequest):
setStatus = self.close.set(value)
set_status = self.close.set(value)
elif isinstance(value, ValveOpenSeqRequest):
setStatus = self.open.set(value)
set_status = self.open.set(value)

return setStatus
return set_status


class Pump(StandardReadable):
Expand Down

0 comments on commit 1ed5229

Please sign in to comment.