Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an Ophyd-async device to match the threaded Ophyd device. #44

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

canismarko
Copy link

This adds an Ophyd-async device that can connect to the apsbss IOC. Also adds a few dependencies to support Ophyd-async, namely ophyd-async, aioca, and pytest-asyncio.

One major difference, besides needing to await the various methods, is that the users for the proposal and ESAF use ophyd-async's device vector.

Threaded-ophyd:

bss.proposal.user1

Ophyd-async:

bss.proposal.users[0]

Doesn't have to be that way, so if backward compatibility is crucial, it can be re-written to match the threaded implementation. Could also be 1-indexed if desired.

This device also includes the _table() method, but instead of PVname, it uses ophyd-async's source attribute, so PV names will be shown as "ca://ioc:bss:..." (extra "ca://" prefix). This also works for non-CA signals, but I don't think there are any here (e.g. "pva://ioc:bss:...").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ophyd-async implementation of the EpicsBssDevice
1 participant