Skip to content

Add scan wth delay plan#83

Open
RafaelLyra8 wants to merge 6 commits intomainfrom
scan_with_delay
Open

Add scan wth delay plan#83
RafaelLyra8 wants to merge 6 commits intomainfrom
scan_with_delay

Conversation

@RafaelLyra8
Copy link
Copy Markdown
Contributor

No description provided.

@RafaelLyra8 RafaelLyra8 requested review from Igort4 and flowln March 9, 2026 17:06
Copy link
Copy Markdown
Contributor

@flowln flowln left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only other notes are that these two commits should be a single one, and I think it may be worth to add one or two tests for this plan, seems to be pretty straightforward.

Comment thread src/sophys/common/plans/scan_with_delay.py
Comment thread src/sophys/common/plans/scan_with_delay.py Outdated
Comment thread src/sophys/common/plans/scan_with_delay.py Outdated
Comment thread src/sophys/common/plans/scan_with_delay.py Outdated
Comment thread src/sophys/common/plans/scan_with_delay.py
@RafaelLyra8 RafaelLyra8 requested a review from flowln March 23, 2026 12:27
Comment on lines +64 to +65
yield from per_step(detectors, step, pos_cache)
yield from sleep(delay)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will always cause the sleep to occur after the trigger_and_read (or similar). There really does not seem to be a good way of making custom per_steps work in all cases in this plan. I'd remove that possibility altogether, and direct users to use a simple scan plan if that's what they need.

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