bluesky / ophyd

hardware abstraction in Python with an emphasis on EPICS
https://blueskyproject.io/ophyd
BSD 3-Clause "New" or "Revised" License
51 stars 79 forks source link

Add a __contains__ to AndStatus #1139

Closed DominicOram closed 1 year ago

DominicOram commented 1 year ago

For our unit tests it would be useful to know if the status we're getting back from a signal contains a supplied signal. I propose creating a __contain__ method on the AndStatus that recursively checks the status tree for a given object.