cnpem / cnpem/sophys-common

Wrong readback message on Ophyd devices with write_pv

Open
#51 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5
Forks
3
Avg merge
1d 22h
Merged PRs (30d)
3

Description

If you create a device with a read_pv and write_pv that can't connect to the write_pv, the Ophyd traceback indicates that the failed connection occured on the read_pv, even if this PV exists.

Example:
The device returns 'Failed to connect to all signals: vpu.pitch_offset (SI-06SB:ID-VPU29:PitchOffset-Mon)' even though this PV exists and the error is occuring with the SI-06SB:ID-VPU29:PitchOffset-SP PV.

EpicsSignalWithMonSP("SI-06SB:ID-VPU29:PitchOffset", name="vpu_pitch_offset")

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the EpicsSignalWithMonSP entry point shown in the example and trace how its read_pv and write_pv connections are represented in the failure message. Reproduce the failed write_pv connection and verify that the traceback identifies SI-06SB:ID-VPU29:PitchOffset-SP rather than the existing read PV.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.