bluesky / bluesky-enhancement-proposals

0 stars 4 forks source link

pass "mode" into ophyd methods #4

Closed jrmlhermitte closed 2 years ago

jrmlhermitte commented 6 years ago

A while back I made these changes (in a different local branch) https://github.com/NSLS-II/bluesky/compare/master...jrmlhermitte:streaming-read2#diff-918281cac085be7995578c4c2c57cd4eR396

We should eventually extend to make the RunEngine stream aware. Pieces of this code could be used and tested here: https://github.com/NSLS-II/bluesky/compare/master...jrmlhermitte:streaming-read2#diff-918281cac085be7995578c4c2c57cd4eR396

The main idea is that right now it's assumed that the same detector read in different streams yields a dictionary with the same keys. However, with a potential change where detectors in different modes can yield different results (for example, say a mode that ignores the stats plugins), this won't be true. (The OEP for this is here ).

This should be an easy add.

tacaswell commented 5 years ago

For clarity, the descriptor cache is already stream aware, this is the cache of calling obj.describe() .