Skip to content

Conversation

@rtuck99
Copy link
Contributor

@rtuck99 rtuck99 commented Nov 5, 2025

Add gain control to IPin device
Add OUT position to the beamstop

Required for

Instructions to reviewer on how to test:

  1. dodal connect i03 shows devices as connected

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
Copy link

codecov bot commented Nov 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.09%. Comparing base (82560eb) to head (a4ed682).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1695   +/-   ##
=======================================
  Coverage   99.08%   99.09%           
=======================================
  Files         274      275    +1     
  Lines       10057    10132   +75     
=======================================
+ Hits         9965    10040   +75     
  Misses         92       92           

☔ 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.

@rtuck99 rtuck99 marked this pull request as ready for review November 13, 2025 13:34
@rtuck99 rtuck99 requested a review from a team as a code owner November 13, 2025 13:34
Copy link
Contributor

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

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

Thanks, mostly minor comments

Comment on lines 464 to 465
"""Get the i04 ipin device, instantiate it if it hasn't already been.
If this is called when already instantiated in i04, it will return the existing object.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should: I know these docstrings are rubbish but this is i03, not i04

"""

DATA_COLLECTION = "Data Collection"
OUT = "Out"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: For the aperture/scatterguard we've used OUT_OF_BEAM might be good to use the same convention here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems like i24 also has its own set of position enums, perhaps we should standardise them.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yh, I'd be up for a common set if we can think of ones that work.

Comment on lines +110 to +114
await self.z_mm.set(pos[2])
await asyncio.gather(
self.x_mm.set(pos[0]),
self.y_mm.set(pos[1]),
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should: Can we have a test that the order is obeyed. Should be able to do it by using the parent mock, something like test_aperture_scatterguard_select_bottom_moves_sg_down_then_assembly_up

@rtuck99 rtuck99 force-pushed the mx-bluesky_351_checks_after_hutch_opening branch from 02e7c86 to bbe89ce Compare November 13, 2025 15:56
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.

3 participants