Skip to content

Update PolynomCompoundMotors logic to work with blueapi, add beamline devices - #2253

Merged
oliwenmandiamond merged 31 commits into
mainfrom
update_compound_motor_logic
Nov 4, 2026
Merged

oliwenmandiamond merged 31 commits into
mainfrom
update_compound_motor_logic

Conversation

@oliwenmandiamond

@oliwenmandiamond oliwenmandiamond commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Fixes DiamondLightSource/sm-bluesky#430. Users can now update offset, square, and step as these are soft SignalRW, which are devices and visible with blueapi.

This also now supports chaining multiple PolynomialCompoundMovableLogic together as it uses the more generic StandardMovable interface as shown as a requirement for i05 which adds the required devices to i05_shared.py and each respective beamline.

Instructions to reviewer on how to test:

  1. Check implementation makes sense
  2. Check tests pass
  3. Check dodal connect

Checks for reviewer

  • Would the PR title make sense to a scientist on a set of release notes
  • If a new device has been added does it follow the standards
  • If changing the API for a pre-existing device, ensure that any beamlines using this device have updated their Bluesky plans accordingly
  • Have the connection tests for the relevant beamline(s) been run via dodal connect ${BEAMLINE}

@codecov

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.30%. Comparing base (c6029a0) to head (ce74f46).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2253   +/-   ##
=======================================
  Coverage   99.30%   99.30%           
=======================================
  Files         376      376           
  Lines       14802    14834   +32     
=======================================
+ Hits        14699    14731   +32     
  Misses        103      103           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@oliwenmandiamond
oliwenmandiamond marked this pull request as ready for review October 30, 2026 12:07
@oliwenmandiamond
oliwenmandiamond requested a review from a team as a code owner October 30, 2026 12:07
@oliwenmandiamond
oliwenmandiamond requested review from DG-At-Diamond and Relm-Arrowny and removed request for a team October 30, 2026 12:07
@Relm-Arrowny Relm-Arrowny self-assigned this Oct 30, 2026
@oliwenmandiamond oliwenmandiamond changed the title Update PolynomCompoundMotors logic to work with blueapi Update PolynomCompoundMotors logic to work with blueapi, add beamline devices Oct 30, 2026

@Relm-Arrowny Relm-Arrowny left a comment

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.

Looks ok, nit of nit

Comment on lines +25 to +28
offset: SignalR[float]
step: SignalR[float]
square: SignalR[float]

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.

Nit: Only offset describe the physical relationship, step and square are both just polynamoial factor and its not really step and square being a constant looks wrong to me.

Suggested change
offset: SignalR[float]
step: SignalR[float]
square: SignalR[float]
constant: SignalR[float]
linear: SignalR[float]
quadratic: SignalR[float]

@oliwenmandiamond
oliwenmandiamond merged commit 5a48065 into main Nov 4, 2026
11 checks passed
@oliwenmandiamond
oliwenmandiamond deleted the update_compound_motor_logic branch November 4, 2026 15: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.

i05 - add m1es_pitch device

2 participants