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

I24 ssx: determine detector #17

Merged
merged 6 commits into from
Jun 7, 2023
Merged

I24 ssx: determine detector #17

merged 6 commits into from
Jun 7, 2023

Conversation

noemifrisina
Copy link
Contributor

@noemifrisina noemifrisina commented Jun 5, 2023

Add a small function to find which detector is in use.
Employing roughly the same logic used in GDA to check the detector and move it to correct positioning. There's probably a better way, but for now it does the job.

Part of #14

@noemifrisina noemifrisina marked this pull request as ready for review June 5, 2023 16:46
@codecov
Copy link

codecov bot commented Jun 5, 2023

Codecov Report

Merging #17 (b0c8aa3) into main (967979e) will increase coverage by 0.21%.
The diff coverage is 81.25%.

❗ Current head b0c8aa3 differs from pull request most recent head fbc6b51. Consider uploading reports for the commit fbc6b51 to get more accurate results

@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
+ Coverage   28.98%   29.19%   +0.21%     
==========================================
  Files          16       16              
  Lines        3940     3956      +16     
==========================================
+ Hits         1142     1155      +13     
- Misses       2798     2801       +3     
Impacted Files Coverage Δ
...luesky/I24/serial/setup_beamline/setup_beamline.py 25.30% <70.00%> (+0.55%) ⬆️
...x_bluesky/I24/serial/setup_beamline/pv_abstract.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

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, few suggestions:

  1. Can you add the changes where you're using these functions into this PR too?
  2. Can we return the detector class rather than a string? If we need the string put it as a param on the class
  3. Given 2 can we add a return type to get_detector_type

Comment on lines +49 to +50
det_y_threshold = 200.0
det_y_target = 220.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice place to store these!

@noemifrisina
Copy link
Contributor Author

Made the suggested changes, merging now because needed in #16

@noemifrisina noemifrisina merged commit a7d496d into main Jun 7, 2023
@noemifrisina noemifrisina deleted the i24-get-detector branch June 7, 2023 10:11
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.

2 participants