Skip to content

Commit

Permalink
Merge pull request #101 from bluesky/give_panda_name
Browse files Browse the repository at this point in the history
Give panda name, change 'pv' to 'prefix'
  • Loading branch information
olliesilvester authored Jan 15, 2024
2 parents 17e94fb + 8423017 commit ab9dd34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ophyd_async/panda/panda.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ 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.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 ab9dd34

Please sign in to comment.