Skip to content

Move beamline specific devies from dodal.devices.iXX to dodal.devices.beamlines.iXX - #1866

Merged
oliwenmandiamond merged 10 commits into
mainfrom
move_beamline_devices
Feb 3, 2026
Merged

oliwenmandiamond merged 10 commits into
mainfrom
move_beamline_devices

Conversation

@oliwenmandiamond

@oliwenmandiamond oliwenmandiamond commented Jan 27, 2026 •

Copy link
Copy Markdown
Contributor

Move dodal.devices.iXX and tests.devices.iXX to dodal.devices.beamlines.iXX and tests.devices.beamlines.iXX respectively

This brings more structure to the repo so you are able to navigate to more specific devices without getting lost at the number of them

Instructions to reviewer on how to test:

  1. Check tests pass
  2. All beamlines successfully migrated

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}

@oliwenmandiamond
oliwenmandiamond requested a review from a team as a code owner January 27, 2026 12:16
@codecov

codecov Bot commented Jan 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.14%. Comparing base (398f342) to head (3b54c5a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1866      +/-   ##
==========================================
- Coverage   99.14%   99.14%   -0.01%     
==========================================
  Files         304      304              
  Lines       11510    11509       -1     
==========================================
- Hits        11412    11411       -1     
  Misses         98       98              

☔ View full report in Codecov by Sentry.
📢 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.

@DominicOram DominicOram 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 good to me. I personally don't really think the new location makes it any more organised but happy if others feel it does. Just the one comment about documenting it, which is a bit of scope creep but might as well whilst we're here. Can you then also post on #athena-components so people are aware of the change and can fix their scripts


**Only if no suitable class exists**, create a new device that connects to the required signals. During review, refactor to align with existing devices if needed, using inheritance or composition to deduplicate code.

Writing a device class

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.

Should: Can you add something here about when devices should be in the top level and when they should be under devices.beamlines.xxx?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done!

@oliwenmandiamond

Copy link
Copy Markdown
Contributor Author

Can you then also post on #athena-components so people are aware of the change and can fix their scripts

Yes, once merged I will post in athena and also go through existing PR's and make sure devices are in correct place

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

Great, thank you!

@oliwenmandiamond
oliwenmandiamond merged commit 07c1416 into main Feb 3, 2026
10 checks passed
@oliwenmandiamond
oliwenmandiamond deleted the move_beamline_devices branch February 3, 2026 17:35
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