Skip to content

Conversation

@srishtysajeev
Copy link
Contributor

@srishtysajeev srishtysajeev commented Nov 21, 2025

Fixes #1318

Instructions to reviewer on how to test:

Need to add tests.

Checks for reviewer

  • Would the PR title make sense to a user on a set of release notes

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.

Added some notes for myself. I will address these

Comment on lines +82 to +84
Args:
devices: These are the specific ophyd-devices used for the plan, the
defaults are always correct.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should: Not sure I like having the args not matching the actual names of the args. Also, there are no defaults and group is not a device

max_pixel: MaxPixel = inject("max_pixel"),
attenuator: BinaryFilterAttenuator = inject("attenuator"),
):
yield from bps.mv(attenuator, 100) # 100 % transmission
Copy link
Contributor

Choose a reason for hiding this comment

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

Must: Attenuator takes transmission as a fraction, e.g. 0-1

f"Testing transmission {mid}, brightest pixel found {brightest_pixel}"
)

if target_pixel_l - tolerance < brightest_pixel < target_pixel_l + tolerance:
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 think there is the (very slim) potential for this to get stuck if brightest_pixel=target_pixel_l - tolerance or brightest_pixel=target_pixel_l + tolerance.

@DominicOram DominicOram added the i04 Changes relating to I04 label Dec 9, 2025
@olliesilvester
Copy link
Contributor

An updated PR for the same changes is here - a lot of the comments here are still relevant though

@DominicOram DominicOram closed this Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i04 Changes relating to I04

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create plan to optimise transmission using OAV images

4 participants