Repository navigation
I19: move beamstop to position - #2254
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2254 +/- ##
=======================================
Coverage 99.30% 99.30%
=======================================
Files 376 376
Lines 14772 14798 +26
=======================================
+ Hits 14669 14695 +26
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, a couple of comments
| from dodal.common.enums import InOutUpper | ||
| from dodal.devices.beamlines.i19.beamstop import BeamStop | ||
|
|
||
| MOCK_BEAMLINE_PARAMS = "# Beamstop\nbeamstop_inbeam_x=5.0\nbeamstop_outbeam_x=3.37\n" |
There was a problem hiding this comment.
Should: Can we make this a multiline string so that's more readable?
|
|
||
| DAQ_CONFIGURATION_PATH = "/dls_sw/i19-1/software/daq_configuration" | ||
|
|
||
| BEAMLINE_PARAMETERS_PATH = f"{DAQ_CONFIGURATION_PATH}/domain/beamline.parameters" |
There was a problem hiding this comment.
Must: This file contains no beamstop_inbeam_x, which presumably means that the beamstop cannot be moved in properly for i19_1 with this? I think it's fine not to implement moving for EH1 given that the work is for EH2 but we should probably change this so EH1 loads a beamstop that cannot be moved rather than one that looks like it can then errors
There was a problem hiding this comment.
Ugh, good point I forgot to check. They do move the beamstop on eh1 and the ioc is the same but either the position has a different name in that file or it is in another one, I can't remember right now...
Although they're actually not using this device at all on eh1 right now, so I may just skip it for them for the moment.
There was a problem hiding this comment.
Found it, they move it in y which is why the key is not the same. Will update the set method accordingly
Needed for i19-bluesky#194 as part of the beamline set up tasks.
Uses the config server to read the beamstop x position from the
beamline.parametersfile and move the motor.Instructions to reviewer on how to test:
Checks for reviewer
dodal connect ${BEAMLINE}