Open CJ-Wright opened 7 years ago
Not from the databroker API, but you can greedily load a bunch of Headers into RAM and then do finer filtering in Python.
In theory we could expose this in the databroker API, but that feature request would have to get in line behind serious performance concerns that richer indexing would worsen. Not likely to happen in 2017.
A better ask is the ability to have more than one run open at a time in bluesky. That way you can put the dark frames in their own run while holding the data collection run open.
I thought that was going to be a bit of an anti-pattern, but our use case is taking darks without putting in a stop document on the lights so whatever gets us there makes me reasonably happy.
I might be missing something, but why do we need to query the descriptor for this ? Wouldn't you just store the fact you are doing a dark frame into the start document ?
Or do we always measure the dark frame as part of the main data collection ? as in the same data stream ?
The setup may be like this:
We don't know apriori if we took a dark (thus can't stuff something into the start). We could potentially put the query information into the stop document? Now this issue is discussing two issues.
If we move to a system which has a separate stream for dark data it would be helpful to query for data which has a dark data stream.