ophyd icon indicating copy to clipboard operation
ophyd copied to clipboard

Pass Status reference in status callbacks

Open teddyrendahl opened this issue 5 years ago • 1 comments

Status objects callbacks are called with no arguments. This means to even have some simple logic based on the completion of the status you need to use partials. I think passing the status back to the user would be a nice usability improvement. We can always inspect signatures to keep back-compat.

teddyrendahl avatar Jun 07 '19 17:06 teddyrendahl

This seems like a good idea to me.

It should be coordinated with a change to bluesky to use this mechanism rather than closures to inject the status object into the callback.

tacaswell avatar Jun 13 '19 22:06 tacaswell