Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I19 hutch access device #1098

Merged
merged 7 commits into from
Mar 12, 2025
Merged

I19 hutch access device #1098

merged 7 commits into from
Mar 12, 2025

Conversation

noemifrisina
Copy link
Collaborator

@noemifrisina noemifrisina commented Mar 10, 2025

Fixes #1097

Instructions to reviewer on how to test:

  1. Run dodal connect i19-optics

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}

Copy link

codecov bot commented Mar 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.71%. Comparing base (61cb467) to head (76aff46).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1098   +/-   ##
=======================================
  Coverage   97.70%   97.71%           
=======================================
  Files         163      164    +1     
  Lines        6680     6690   +10     
=======================================
+ Hits         6527     6537   +10     
  Misses        153      153           

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

@noemifrisina noemifrisina marked this pull request as ready for review March 11, 2025 09:51
@noemifrisina noemifrisina requested a review from a team as a code owner March 11, 2025 09:51
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.

Great, thanks. One comment, take it or leave it

Comment on lines +5 to +8
class HutchAccessControl(StandardReadable):
def __init__(self, prefix: str, name: str = "") -> None:
self.active_hutch = epics_signal_r(str, f"{prefix}EHStatus.VALA")
super().__init__(name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

On a first try, doing this won't connect giving this error:

raise NotConnected(exceptions)
ophyd_async.core._utils.NotConnected: 
access_control: NotConnected: pva://BL19I-OP-STAT-01:PVI

... which makes sense as BL19I-OP-STAT-01:PVI doesn't exist.

I think I'm going to merge this PR as is and try to figure this out in a separate branch

@noemifrisina noemifrisina merged commit e126341 into main Mar 12, 2025
19 checks passed
@noemifrisina noemifrisina deleted the i19-hutch-access-device branch March 12, 2025 10:32
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.

I19 optics: Create a device that can read which hutch is in control
2 participants