bluesky / ophyd-async

Hardware abstraction for bluesky written using asyncio
https://blueskyproject.io/ophyd-async
BSD 3-Clause "New" or "Revised" License
7 stars 21 forks source link

Defer creation of HDF5 file until prepare/trigger #314

Open callumforrester opened 1 month ago

callumforrester commented 1 month ago

Calling in prepare/trigger rather than stage would mean we can tie the file path into contextual information about the run. stage is normally called before open_run so creating the file in stage means the run does not exist at the time of creation. Any solution has to be mindful of pre-declare, the file must exist by the time describe is called, i.e. the declare_stream plan.

abbiemery commented 3 weeks ago

This is needed so we can use multipliers. Closing old issue #129 in favour of this.

coretl commented 1 week ago

Suggested changes to StandardDetector:

Should be done with knowledge of how the interface between StandardDetector and DetectorController will change in #405