Repository navigation
Move CentreEllipseMethod to a more common location - #1942
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1942 +/- ##
=======================================
Coverage 99.16% 99.16%
=======================================
Files 347 347
Lines 13628 13634 +6
=======================================
+ Hits 13514 13520 +6
Misses 114 114 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
DominicOram
left a comment
There was a problem hiding this comment.
Thanks, minor comment. Could you also add a test that explicitly checks that if you specify a large ROI it gives you the full image? It may be covered by test_get_roi_creates_correct_image_array, if it is then just a comment on one of those cases would be good.
| ellipse_fit = self._fit_ellipse(roi_binary) | ||
| roi_centre_x = ellipse_fit[0][0] | ||
| roi_centre_y = ellipse_fit[0][1] | ||
| LOGGER.info(f"Beam centre founf at ({roi_centre_x}, {roi_centre_y})") |
There was a problem hiding this comment.
Nit:
| LOGGER.info(f"Beam centre founf at ({roi_centre_x}, {roi_centre_y})") | |
| LOGGER.info(f"Beam centre found at ({roi_centre_x}, {roi_centre_y})") |
There was a problem hiding this comment.
Also, this is the centre in the ROI co-ordinates, I think the full image co-ordinates would be more expected (or specify in the log that they're ROI)
* Revert direction to int to allow for values different from 0 or 1 * Add a readable signal for piezo setpoints as readback drifts too much * Move CentreEllipseMethod to a more common location (#1942) * First try just leaving everything as is * Move beam_centre device to a more common location and instantiate on i19-1 * Actually fix tests * That was not a fix - this hopefully is * Fix logging message * Add a comment to the test to specify large ROI * Beam detect test * Run pre-commits * Add some PVs to set up AD plugin chain * Update docstring * Add device prefix * Add a couple of tests * Get the right value in test * Fix test * Actually save all changes * Make device preparable and set up plugin chain there in place of plan * Run pre commits * Add a docstring and make lint happy * Tidy up a bit * Use the stat plugin from ophyd-async and use trigger to enable it * Remove extra obsolete comment * Better comment to setpoint piezo * Get plugin names from PVs * Add more to docstring * Make device stageable instead of triggerable * Fix typo
Needed for i19-bluesky#122
Instructions to reviewer on how to test:
Checks for reviewer
dodal connect ${BEAMLINE}