-
Notifications
You must be signed in to change notification settings - Fork 11
Removes/reduces referenece use on i10 IDs #1032
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
Removes/reduces referenece use on i10 IDs #1032
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1032 +/- ##
==========================================
- Coverage 98.06% 98.04% -0.02%
==========================================
Files 205 205
Lines 7802 7792 -10
==========================================
- Hits 7651 7640 -11
- Misses 151 152 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Thanks, I think it's cleaner but have some more comments to make it even more so.
…com:DiamondLightSource/dodal into 1029-removesreduces-refenece-use-on-i10-ids
…com:DiamondLightSource/dodal into 1029-removesreduces-refenece-use-on-i10-ids
"""This change the position of all the motors for a given energy and | ||
polarisation_setpoint""" | ||
|
||
def _read_pol( |
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 don't understand the device well enough to comment on the automatic switch, but otherwise that sounds good I think, as long as users don't get confused when their readback says LH instead of LH3
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.
Sorry, just a few more comments. I think it's very almost there now
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.
It's possible I've missed something as I don't have fresh eyes on this code anymore, but I think it looks good now, thanks!
I have a nit on the tests, but I suggest you don't do them in this PR so we can get this one merged: IMO it's better to test the features of your base class in the test file of that base class, rather than the test file of an implementation of that class. For example, Apple2.determine_phase_from_hardware
is tested in test_i10Apple2.py
rather than test_apple2_undulator.py
* corrected read so it always read pol from hardware * add uml and correct some docstring * Time out fix * change id to use direved derived_signal_r * make polarisation both read and set. * update lookuptable path for blueapi --------- Co-authored-by: Dominic Oram <[email protected]> Co-authored-by: olliesilvester <[email protected]>
Fixes #1029 and #1046.
Instructions to reviewer on how to test:
Checks for reviewer
dodal connect ${BEAMLINE}