Repository navigation
I19: Set up devices for beam centre move - #2227
Conversation
* 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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2227 +/- ##
=======================================
Coverage 99.29% 99.29%
=======================================
Files 371 372 +1
Lines 14583 14630 +47
=======================================
+ Hits 14480 14527 +47
Misses 103 103 ☔ 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, couple of comments but no showstoppers
| ): | ||
| with self.add_children_as_readables(StandardReadableFormat.HINTED_SIGNAL): | ||
| self.setpoint = epics_signal_r(float, f"{prefix}AOFPITCH") | ||
| # Piezo not in a closed loop so readback drifting |
There was a problem hiding this comment.
Could: Is this still true? Comments in other issues say it's now closed loop? I think we can just remove the comment and maybe read the setpoint as a CONFIG_SIGNAL signal as it's still good to know
There was a problem hiding this comment.
Sorry, I'm afraid the original comment I put in wasn't entirely correct - While now we're in a closed loop for both piezos, the RBV value is still drifting a little bit (just not nearly as much as before) so we still should use the setpoint to get the current voltage
(Just to give an idea:
camonitor BL19I-OP-HFM-01:AOFPITCH BL19I-OP-HFM-01:AOFPITCH:RBV
BL19I-OP-HFM-01:AOFPITCH 2026-10-13 11:33:58.135582 1.265
BL19I-OP-HFM-01:AOFPITCH:RBV 2026-10-13 14:38:40.714331 1.32877
BL19I-OP-HFM-01:AOFPITCH:RBV 2026-10-13 14:38:40.814331 1.32938
BL19I-OP-HFM-01:AOFPITCH:RBV 2026-10-13 14:38:40.914331 1.3303
BL19I-OP-HFM-01:AOFPITCH:RBV 2026-10-13 14:38:41.014331 1.32755
BL19I-OP-HFM-01:AOFPITCH:RBV 2026-10-13 14:38:41.114331 1.32816
BL19I-OP-HFM-01:AOFPITCH:RBV 2026-10-13 14:38:41.214331 1.32755
I'll put in a better one
| CAM_PLUGIN_NAME = "OAV1.cam" | ||
| CC_PLUGIN_NAME = "OAV1.cc" |
There was a problem hiding this comment.
Should: We should be able to read these from PVs as e.g. BL19I-EA-OAV-02:CAM:PortName_RBV
|
|
||
|
|
||
| class CentroidFromEpics(StandardReadable, Preparable, Triggerable): | ||
| """Device to set up the CAM -> CC -> STAT plugin chain and get the centroid.""" |
There was a problem hiding this comment.
Could: Can we add a few more docs on what it's doing e.g. why do we need the CC?
DominicOram
left a comment
There was a problem hiding this comment.
Thanks, apologies I missed something
| ) | ||
|
|
||
| @AsyncStatus.wrap | ||
| async def trigger(self): |
There was a problem hiding this comment.
Should: Sorry, only really thought about this after reviewing the other PR but feels like this might be better as a stage/unstage? See https://github.com/DiamondLightSource/i19-bluesky/pull/186/changes#r4269245530
There was a problem hiding this comment.
Fair enough - tbh I briefly wondered the same when I got to the plan bit but wasn't totally sure it was worth it... and I just decided to leave it up to the review at that point
Closes i19-bluesky#179
Needed for i19-blueasky#180
Instructions to reviewer on how to test:
Checks for reviewer
dodal connect ${BEAMLINE}