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

TangoShutter: refactor (changes from https://github.com/mxcube/mxcubecore/pull/847/) #1158

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

Conversation

mockoocy
Copy link
Contributor

@mockoocy mockoocy commented Feb 20, 2025

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.

@mockoocy mockoocy marked this pull request as draft February 20, 2025 08:07
Originally added in github.com/mxcube/pull/847
@mockoocy mockoocy force-pushed the pm-add-tango-shutter-changes branch from 113fe3a to 26e1677 Compare February 20, 2025 08:17
@mockoocy mockoocy force-pushed the pm-add-tango-shutter-changes branch from 26e1677 to acb0962 Compare February 20, 2025 08:43
@mockoocy mockoocy marked this pull request as ready for review February 20, 2025 08:55
@@ -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
Copy link
Collaborator

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?

Copy link
Contributor Author

@mockoocy mockoocy Feb 20, 2025

Choose a reason for hiding this comment

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

Tragedy in few parts:

  1. I opened this file
  2. I wanted to do ctrl + f to search for something.
  3. I must have missed the ctrl and pressed fn :D
  4. git add test/

Copy link
Contributor Author

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.
@mockoocy mockoocy force-pushed the pm-add-tango-shutter-changes branch from acb0962 to afb38fe Compare February 20, 2025 13:25
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