Skip to content

Commit

Permalink
pjump cell add prefix to initalize correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Nov 14, 2024
1 parent 67f93aa commit d1a3776
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/dodal/devices/pressure_jump_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,25 +224,26 @@ class PressureJumpCell(StandardReadable):
def __init__(
self,
beamline_prefix: str,
prefix: str,
cell_prefix: str = "-HPXC-01:",
adc_prefix: str = "-ADC",
ctrl_prefix: str = "CTRL:",
name: str = "",
):
self.all_valves_control = AllValvesControl(
f"{beamline_prefix}{cell_prefix}", name
f"{beamline_prefix}{prefix}{cell_prefix}", name
)
self.pump = Pump(f"{beamline_prefix}{cell_prefix}", name)
self.pump = Pump(f"{beamline_prefix}{prefix}{cell_prefix}", name)

self.controller = PressureJumpCellController(
f"{beamline_prefix}{cell_prefix}{ctrl_prefix}", name
f"{beamline_prefix}{prefix}{cell_prefix}{ctrl_prefix}", name
)

with self.add_children_as_readables():
self.pressure_transducers: DeviceVector[PressureTransducer] = DeviceVector(
{
i: PressureTransducer(
prefix=f"{beamline_prefix}{cell_prefix}",
prefix=f"{beamline_prefix}{prefix}{cell_prefix}",
number=i,
adc_prefix=f"{beamline_prefix}{adc_prefix}-0{i}:",
)
Expand All @@ -251,7 +252,7 @@ def __init__(
)

self.cell_temperature = epics_signal_r(
float, f"{beamline_prefix}{cell_prefix}TEMP"
float, f"{beamline_prefix}{prefix}{cell_prefix}TEMP"
)

super().__init__(name)

0 comments on commit d1a3776

Please sign in to comment.