Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
Removed name handling from PandA
Browse files Browse the repository at this point in the history
  • Loading branch information
Rose Yemelyanova committed Aug 18, 2023
1 parent c2df3e9 commit 3aaedaf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ophyd_epics_devices/panda.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ class PandA(Device):
seq: DeviceVector[SeqBlock]
pcap: PcapBlock

def __init__(self, prefix: str, name: str = "") -> None:
self._init_prefix = prefix
def __init__(self, pv: str) -> None:
self._init_prefix = pv
self.pvi_mapping: Dict[FrozenSet[str], Callable[..., Signal]] = {
frozenset({"r", "w"}): lambda dtype, rpv, wpv: epics_signal_rw(
dtype, rpv, wpv
Expand Down Expand Up @@ -323,5 +323,4 @@ async def connect(self, sim=False) -> None:
block = await self._make_block(block_name, num, "sim://", sim=sim)
self.set_attribute(block_name, num, block)

self.set_name(self.name)
await super().connect(sim)

0 comments on commit 3aaedaf

Please sign in to comment.