-
Notifications
You must be signed in to change notification settings - Fork 52
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
TangoShutter: refactor (changes from https://github.com/mxcube/mxcubecore/pull/847/) #1158
base: develop
Are you sure you want to change the base?
Conversation
Originally added in github.com/mxcube/pull/847
113fe3a
to
26e1677
Compare
26e1677
to
acb0962
Compare
test/pytest/test_hwo_isara_maint.py
Outdated
@@ -90,7 +90,7 @@ def disable_remote_mode(self): | |||
|
|||
def _disconnect_channels(maint: ISARAMaint): | |||
""" | |||
disconnect signal callbacks from tango attribute pollers | |||
disconnect signal callbacks from tango attribute pollersf |
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.
What up with this change?
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.
Tragedy in few parts:
- I opened this file
- I wanted to do
ctrl + f
to search for something. - I must have missed the
ctrl
and pressedfn
:D git add test/
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.
Removed the change now.
The ruff config had to be adjusted to ignore the rule saying that methods have to start with lowercase letter - as there is a mocked Tango Device.
acb0962
to
afb38fe
Compare
Adds code changes from PR #847
And a test case for the TangoShutter Hardware Object.
At MAXIV we use these changes for quite a long time, but it has not been merged in the original for some reason (which is rather unclear looking at the PR's discussion).
The difference between the version at #847 and this PR is addition of type annotations and adoption of new linting rules.