Skip to content

Conversation

@thopkins32
Copy link
Contributor

Summary

Adds helper plans to move flaky motors.

Main additions

  • mv_with_retry plan for one-off moves a positioner or motor
  • one_nd_step_with_retries is a "per-step hook" that standard Bluesky scans support
  • scan_with_retry plan takes in a Bluesky scan plan and adds the one_nd_step_with_retries hook.

Examples

Single moves

RE(mv_with_retry(my_motor, 0.5, num_retries=100))
RE(mv_with_retry(motor1, 0.5, motor2, 10.1, num_retries=3))

Scans

from bluesky.plans import scan, list_scan

uid = RE(scan_with_retry(list_scan, motor1, [1, 5, 3, 2], motor2, [4, 1, 2, 9], num_retries=5))
uid = RE(scan_with_retry(scan, motor1, 1, 5, 0.1, motor2, -5, 5, 1, num_retries=5))

@thopkins32 thopkins32 requested a review from ambarb December 1, 2025 18:52
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