Skip to content

[BUG]: Ophyd EpicsSignal in device with different read/write pv #137

@cappel89

Description

@cappel89

Provide a brief description of the bug.

If you create a device from ophyd with an EpicsSignal that has a different read and write pv, then the prefix will only propagate to the write_pv, but not the read_pv. I am not sure whether the upstream repository will adapt for that, but we might like to patch that...

To reproduce:

from ophyd import EpicsSignal
from ophyd import Device
from ophyd import Component as Cpt
class Test(Device):
    sig = Cpt(EpicsSignal, write_pv="test_write_pv", read_pv="test_read_pv")
test = Test(name="test", prefix="IOC-Prefix:")
test.sig._write_pv.pvname
test.sig._read_pv.pvname
Image

Describe what you expected to happen and what actually happened.

No response

Outline the steps that lead to the bug's occurrence. Be specific and provide a clear sequence of actions.

No response

bec_widgets version

No response

bec core version

No response

Any extra info / data? e.g. log output...

No response

Related issues

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions