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

Make the PinTipDetection device also store top and bottom edges #358

Merged
merged 13 commits into from
Mar 6, 2024

Conversation

dperl-dls
Copy link
Collaborator

Needed for hyperion DiamondLightSource/hyperion#1213 DiamondLightSource/hyperion#1068

Instructions to reviewer on how to test:

  1. Check nothing is broken

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

@dperl-dls dperl-dls force-pushed the hyperion_1068_1213_ophyd_oav_for_grid_detect branch from 6f0c355 to c193fc1 Compare March 5, 2024 11:26
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.30%. Comparing base (632d1ca) to head (e5e629e).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #358      +/-   ##
==========================================
+ Coverage   93.28%   93.30%   +0.01%     
==========================================
  Files          85       85              
  Lines        3290     3299       +9     
==========================================
+ Hits         3069     3078       +9     
  Misses        221      221              

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

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.

Looks good, I think we need to update the tests here to confirm that the trigger and read is also giving back top/bottom arrays though.

Comment on lines 98 to 100
async def _set_edges(self, values: tuple[NDArray, NDArray]):
await self.triggered_top_edge._backend.put(values[0])
await self.triggered_bottom_edge._backend.put(values[1])
Copy link
Contributor

Choose a reason for hiding this comment

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

Could: Feels like we can just have one _set_triggered_values function that takes a SampleLocation rather than this split

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

@DominicOram DominicOram merged commit 56ef04b into main Mar 6, 2024
16 checks passed
@DominicOram DominicOram deleted the hyperion_1068_1213_ophyd_oav_for_grid_detect branch March 6, 2024 10:44
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