Skip to content

Commit

Permalink
Give panda name, change 'pv' to 'prefix' to keep consistent with ophy…
Browse files Browse the repository at this point in the history
…d v1 devices
  • Loading branch information
olliesilvester committed Jan 11, 2024
1 parent 2ae845f commit 291807f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ophyd_async/panda/panda.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ class PandA(Device):
seq: DeviceVector[SeqBlock]
pcap: PcapBlock

def __init__(self, pv: str) -> None:
self._init_prefix = pv
def __init__(self, prefix: str, name: str = "") -> None:
super().__init__(self.name)
self._init_prefix = prefix
self.set_name(self.name)
self.pvi_mapping: Dict[FrozenSet[str], Callable[..., Signal]] = {
frozenset({"r", "w"}): lambda dtype, rpv, wpv: epics_signal_rw(
dtype, rpv, wpv
Expand Down

0 comments on commit 291807f

Please sign in to comment.