Skip to content

Feature: Add Halbach Array controller and devices - #2283

Merged
Relm-Arrowny merged 25 commits into
mainfrom
2272-create-ophyd-device-for-halbach
Nov 19, 2026
Merged

Relm-Arrowny merged 25 commits into
mainfrom
2272-create-ophyd-device-for-halbach

Conversation

@Relm-Arrowny

@Relm-Arrowny Relm-Arrowny commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2272

Changes

  • Added HalbachLookupTable(src/dodal/devices/beamlines/i10/rasor/halbach/halbach_lut.py) with interpolation for field/angle to motor conversion .
  • Added HalbachMagnetArrayController(src/dodal/devices/beamlines/i10/rasor/halbach/halbach.py) to change motors position from field and angle.
  • Added halbach, to src/dodal/beamlines/i10.py

Instructions to reviewer on how to test:

  1. Make sure test passes.
  2. The design make sense.

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}

@Relm-Arrowny Relm-Arrowny linked an issue Nov 18, 2026 that may be closed by this pull request
11 tasks done
@codecov

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.31%. Comparing base (fc60327) to head (5ab86d0).

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #2283    +/-   ##
========================================
  Coverage   99.31%   99.31%            
========================================
  Files         380      383     +3     
  Lines       14978    15145   +167     
========================================
+ Hits        14875    15042   +167     
  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.

@Relm-Arrowny Relm-Arrowny changed the title add halback lut Feature: Add Halbach Arraoy controller and devices Nov 18, 2026
@Relm-Arrowny Relm-Arrowny changed the title Feature: Add Halbach Arraoy controller and devices Feature: Add Halbach Array controller and devices Nov 18, 2026
@Relm-Arrowny
Relm-Arrowny marked this pull request as ready for review November 18, 2026 16:21
@Relm-Arrowny
Relm-Arrowny requested a review from a team as a code owner November 18, 2026 16:21

@oliwenmandiamond oliwenmandiamond 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.

I haven't had a chance to look at the tests yet.

The device and table logic look solid from what I can tell. I've add some comments on how to improve

@oliwenmandiamond oliwenmandiamond 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.

Thanks, looks really good. Almost there, couple more improvements

@oliwenmandiamond oliwenmandiamond 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 great, thank you!

@Relm-Arrowny
Relm-Arrowny merged commit ca5649b into main Nov 19, 2026
10 of 11 checks passed
@Relm-Arrowny
Relm-Arrowny deleted the 2272-create-ophyd-device-for-halbach branch November 19, 2026 15:34
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.

Create ophyd device for halbach.

2 participants