-
Notifications
You must be signed in to change notification settings - Fork 5
Use VMAX for resetting omega before and after rotation scans #1237
Conversation
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.
Looks good, one minor query
yield from bps.rd(composite.smargon.omega.max_velocity) | ||
or DEFAULT_MAX_VELOCITY |
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: Why do we have a default in here? In case the PV doesn't exist - we have bigger problems. For the unit tests - we should just be setting up the mock device properly
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.
I figured in case it was 0 for some reason, I don't know how likely it is for the smargon or VMAX
specifically but we often have epics motor fields with nothing in them
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.
I think that's very unlikely but I'm not that bothered
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, ta!
yield from bps.rd(composite.smargon.omega.max_velocity) | ||
or DEFAULT_MAX_VELOCITY |
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.
I think that's very unlikely but I'm not that bothered
…Source/685_use_vmax_for_rotation Use VMAX for resetting omega before and after rotation scans
Fixes #685
Uses the
max_velocity
from theExtendedEpicsMotor
to reset velocity for rotation scansLink to dodal PR (if required): 367
To test: