Skip to content

Add a device setup plan to setup the pin tip detection parameters#1858

Merged
noemifrisina merged 26 commits intomainfrom
i19-116_add-plan-for-pintip-params
Jan 26, 2026
Merged

Add a device setup plan to setup the pin tip detection parameters#1858
noemifrisina merged 26 commits intomainfrom
i19-116_add-plan-for-pintip-params

Conversation

@noemifrisina
Copy link
Copy Markdown
Collaborator

Move in plan to set up parameters for pin tip detection from mx-bluesky

Needed for i19-bluesky#116

Instructions to reviewer on how to test:

  1. Do thing x
  2. Confirm thing y happens

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}

@noemifrisina noemifrisina changed the title I19 116 add plan for pintip params Add a device setup plan to setup the pin tip detection parameters Jan 23, 2026
@noemifrisina noemifrisina marked this pull request as ready for review January 23, 2026 16:56
@noemifrisina noemifrisina requested a review from a team as a code owner January 23, 2026 16:56
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.07%. Comparing base (6a83610) to head (7f35e70).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1858   +/-   ##
=======================================
  Coverage   99.07%   99.07%           
=======================================
  Files         295      297    +2     
  Lines       11279    11298   +19     
=======================================
+ Hits        11175    11194   +19     
  Misses        104      104           

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

Copy link
Copy Markdown
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, couple of small comments, also tests would be good.

pin_tip_detect_device: PinTipDetection,
parameters: OAVParameters,
):
set_using_group = partial(bps.abs_set, group="pin_tip_parameters")
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: Would be good if we passed this group in and so we can make the behaviour the same in the mx-bluesky case

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.

Could: We could also add a wait parameter to the plan that optionally waits on the group at the end

@DominicOram
Copy link
Copy Markdown
Contributor

Also, can you make the changes for mx-bluesky to use this?

@noemifrisina
Copy link
Copy Markdown
Collaborator Author

Also, can you make the changes for mx-bluesky to use this?

Yeah I thought I'd leave that for after all the i19 changes are done though

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

@noemifrisina noemifrisina merged commit f9c6ced into main Jan 26, 2026
10 checks passed
@noemifrisina noemifrisina deleted the i19-116_add-plan-for-pintip-params branch January 26, 2026 16:16
dan-fernandes pushed a commit that referenced this pull request Jan 27, 2026
)

* Add OAV1 and OAV2 devices to i19-1 and change the locations of the parameter files to where the bluesky scratch is

* Add PinTipDetection devices to i19_1

* Make a new device where beam centre PVs are writable

* And maybe save the device

* Remove unneeded inherit from OAV

* Move pin tip params plan in from mx-bluesky

* Rename some things

* Aaaand save

* Add back oav for clarity

* Add plan name to setup_device

* Try committing and check CI

* Fill in test

* And maybe don't forget half the line

* Change some names

* A couple of docstrings

* Add docstring

* Make group and wait input arguments of the plan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants