-
Notifications
You must be signed in to change notification settings - Fork 8
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
(DiamondLightSource/dodal#751) Draw crosshairs with better contrast #787
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #787 +/- ##
=======================================
Coverage 94.91% 94.91%
=======================================
Files 115 115
Lines 4658 4665 +7
=======================================
+ Hits 4421 4428 +7
Misses 237 237 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thank you! I tested it against a light and a dark background and both were very visible. Couple of minor comments
draw.rectangle( | ||
[beam_x - 1, beam_y - HALF_LEN - 1, beam_x + 1, beam_y + HALF_LEN + 1], | ||
fill=cls.CROSSHAIR_OUTLINE_COLOUR, | ||
) | ||
draw.rectangle( | ||
[beam_x - HALF_LEN - 1, beam_y - 1, beam_x + HALF_LEN + 1, beam_y + 1], | ||
fill=cls.CROSSHAIR_OUTLINE_COLOUR, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should: The 1 in here is the width of the outline right? Might be worth pulling into a constant for readability?
@@ -91,7 +91,8 @@ class SnapshotWithBeamCentre(MJPG): | |||
image and saves the image to disk.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could: Would be good to mention the outline in the docstring
Fixes #751
Instructions to reviewer on how to test: