Skip to content

AGENTS.md: who runs where in an instrument plugin - #64

Merged
seb5g merged 1 commit into
5.3.xfrom
docs/agents-plugin-workflow
Oct 29, 2026
Merged

seb5g merged 1 commit into
5.3.xfrom
docs/agents-plugin-workflow

Conversation

@seb5g

@seb5g seb5g commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Before: AGENTS.md said that plugin code runs in a worker thread and must not touch widgets, but not which object runs where, when move_done is called, or how the data of a grab reaches the viewer.

After: a "Who runs where" paragraph in section 3 (instrument plugins): the control module in the GUI thread, the worker and the plugin in the plugin thread (one per controller, shared by master and slaves), the controller used in the plugin thread only; how a move ends (polling, no polling, a move that ends later) and how a grab reaches the GUI (averaging, live mode); an exception of a plugin method is shown as an error of the module. It points to the PyMoDAQ documentation page "How an instrument plugin works with the Dashboard" (docs/src/developer_folder/plugin_workflow.rst), which holds the diagrams.

How: every sentence comes from the code of daq_move.py, daq_viewer.py, control_modules/utils.py and move_utility_classes.py of PyMoDAQ 5.3.x, read for the page itself. Item P9 of the AI-friendliness plan.

Tested: documentation only, no code changed. Please merge after PyMoDAQ PR #1448 (the page this refers to).


Generated by Claude Code

…, controller)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tdiso1u1ZhikSutj2Qs5Cg
@seb5g
seb5g merged commit 1fefb5c into 5.3.x Oct 29, 2026
8 checks passed
@seb5g
seb5g deleted the docs/agents-plugin-workflow branch October 29, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants