Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reflectometry: Wrong Velocity Being Cached [Timebox: 3 days for 2 people] #7215

Closed
3 tasks
ThomasLohnert opened this issue Jul 5, 2022 · 1 comment
Closed
3 tasks
Assignees
Labels
13 bug Pair Program This issue should use pair programming

Comments

@ThomasLohnert
Copy link
Contributor

As a user of the reflectometry server, I would like to be sure motor axes are reliably restored to their pre-move velocity after a coordinated move.

At the moment, it appears there is a bug that results in the wrong velocity (i.e. the slower velocity set for the coordinated move) being saved to the autosave file which is used for restoring it post move. The cache restore logic is handled by some logic based on events in the reflectometry server and by monitoring DMOV. I have not been able to identify a clear pattern to when this happens, could be down to a race condition or a specific case that isn't appropriately covered by the logic.

Acceptance Criteria

  • Find the reason the wrong velocity gets cached sometimes
  • Change the code so it does not happen anymore
  • Add appropriate tests

Extra Information

Why it is needed?
This is a nuisance for reflectometry users if they want to move motor axes directly as they either need to endure extremely slow moves or frequently reset the velocity by hand. Either way, this wastes a lot of their time.

Where required files/links are
Relevant files to look at are most likely:

  • ReflectometryServer/ioc_driver.py
  • ReflectometryServer/pv_wrapper.py

How to Test

verbose instructions for reviewer to test changes
(Add before making a PR)

@NikolaRoev NikolaRoev added the 0 label Aug 24, 2022
@NikolaRoev NikolaRoev self-assigned this Aug 24, 2022
@NikolaRoev NikolaRoev added this to the SPRINT_2022_08_15 milestone Aug 24, 2022
@github-actions github-actions bot added the ready label Aug 24, 2022
@NikolaRoev NikolaRoev removed this from the SPRINT_2022_08_15 milestone Sep 1, 2022
@NikolaRoev NikolaRoev removed their assignment Sep 1, 2022
@KathrynBaker KathrynBaker changed the title Reflectometry: Wrong Velocity Being Cached Reflectometry: Wrong Velocity Being Cached [Timebox: 3 days for 2 people] Oct 27, 2022
@github-actions github-actions bot added ready and removed proposal labels Oct 27, 2022
@KathrynBaker KathrynBaker added this to the SPRINT_2022_10_27 milestone Oct 27, 2022
@KathrynBaker KathrynBaker added the Pair Program This issue should use pair programming label Oct 27, 2022
@pheest
Copy link
Contributor

pheest commented Feb 17, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
13 bug Pair Program This issue should use pair programming
Projects
None yet
Development

No branches or pull requests

5 participants