Closed ThomasLohnert closed 1 year ago
Looks good overall! I have got a couple of suggestions for making the interactions a bit more robust:
.DISP
on DEFINE_POS_SP
and DEFINE_POS_ACTION
while a parameter is moving (indicated by its "changing" flag)Move
button so that it is disabled while the parameter is "changing"Move
button for actually moving (not redefining) an axis to a different position does not work when the component for this parameter is parked out of beam. This should be reflected by replacing the button with an "out" label, same as we do on the normal parameter tabsSome other minor comments on individual PRs
As a reflectometry scientist, I would like some adequate controls to be in place to protect me from errors on redefining positions. At the moment, as soon as you enter a new value on the redefine dialog and press "enter", the motor position is redefined. This could lead to user error, especially as it is different to the rest of the reflectometry server, where you still have to push the "move" button to actually set a new value on an axis, which gives users of the OPI an extra opportunity to verify the new value and protect against typos, typing in the wrong field etc. Recovering from such an error is slightly awkward as you either have to remember the previous value, or go look it up in the archive.
Acceptance Criteria
There is a validation step after entering a new position to which you want to redefine an axis. e.g.:
SP
/SP:RBV
/ACTION
fields for each redefine parameter value, similar to the regular parameterSP
/SP:RBV
/ACTION
fieldsor
How to Test
verbose instructions for reviewer to test changes (Add before making a PR)