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

Add sleep to gridscan validity check #503

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

olliesilvester
Copy link
Contributor

Fixes #502 (maybe...)

Other option is to wait for PV to be archived and wait to see the error again

Copy link
Contributor

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, couple of comments, I think we need a bit more testing on the beamline

src/mx_bluesky/hyperion/device_setup_plans/setup_panda.py Outdated Show resolved Hide resolved
@@ -349,6 +349,7 @@ def wait_for_gridscan_valid(fgs_motors: FastGridScanCommon, timeout=0.5):
LOGGER.info("Waiting for valid fgs_params")
SLEEP_PER_CHECK = 0.1
times_to_check = int(timeout / SLEEP_PER_CHECK)
yield from bps.sleep(0.1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should: I think I would like to be certain this is the issue before we introduce new sleeps. Can you test it out on the hardware? If this is the issue we should probably spend a bit of time thinking about a cleaner way of handling it, maybe by pushing it into the device more

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I can try and test this on a Tuesday, I guess by forcing Hyperion to go from valid to invalid params every time. The scan invalid PV is added to the archiver too now, which should help

Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.61%. Comparing base (1928954) to head (45f5b67).
Report is 3849 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #503       +/-   ##
===========================================
+ Coverage   57.08%   77.61%   +20.53%     
===========================================
  Files          28       89       +61     
  Lines        3199     6705     +3506     
===========================================
+ Hits         1826     5204     +3378     
- Misses       1373     1501      +128     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panda grid scans don't correctly check for gridscan_valid
2 participants