bluesky / event-model

data model for event-based data collection and analysis
https://blueskyproject.io/event-model
BSD 3-Clause "New" or "Revised" License
13 stars 30 forks source link

Allow event counters to be defined outside of a run #256

Closed evalott100 closed 1 year ago

evalott100 commented 1 year ago

Currently a compose_run creates its own event_counter, which it iterates on itself. When we implement compose functions in the bluesky RunBundler for the rewind() and _interruptions_counter we will need a reference to these counters to pass around. We should therefore allow the kwarg event_counter in the compose_run function.