Open light-scattering-io opened 4 months ago
Two options for this:
Threading option has the advantage of hiding async/await, but need to be careful if an error ocurres while running the sequence to force the main thread to stop.
Asyncio is is maybe easier since any error while running the sequence could just propagate to cancel the scheduling task transparently. Issue is that both sequence managing and shot scheduling become async.
It would be useful when scheduling a shot to run to have some way to know when the shot has completed and has been saved.
This would make it possible to have efficient feedback based iteration of the sequence parameters.