DiamondLightSource / DiamondLightSource/fastcs-odin

Top level `frames_written` delayed update after `writing`

Open
#107 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Description

We've noticed that an individual `fp` (i.e., `fp0`) reads `frames_written==0` immediately when it goes into `writing==true`. However, if using the top level `fp` attributes, there is sometimes a large delay (e.g., `0.5s`) from `writing==true` to `frames_written==0`, which results in a misconfiguration in the kickoff context on `ophyd-async`.

## Steps To Reproduce
Steps to reproduce the behavior:
1. Use dodal's `configure_arm_trigger_and_disarm_detector` plan
2. See occasional timeout error on `bps.complete(..)`, as we erronously expect an extra exposure to come.

## Acceptance Criteria
- Race condition between top level writing and frames_written rectified, and this fix (TODO: link to code line) removed from `ophyd_async`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.