-
Notifications
You must be signed in to change notification settings - Fork 34
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
P11 char Qt #460
base: develop
Are you sure you want to change the base?
P11 char Qt #460
Conversation
…on in PR#966 mxcubecore
…b is not available.
…NState (PR#966 mxcubecore)
…ube designer mode
…o create P11 mach info brick:wq
# Check if machine current is <= 99, change color | ||
if current_value != "N/A" and float(current_value) <= 99: |
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.
Why 99? Can it be configurable or even better, got from the HO as limits?
Args: | ||
limits (tuple): A tuple containing the minimum and maximum transmission limits. | ||
""" | ||
if limits and limits[0] is not None and limits[1] is not None: |
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.
Maybe you could simply check if limits and None not in limits:
""" | ||
if limits: | ||
if limits and limits[0] is not None and limits[1] is not None: |
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.
Maybe you could simply check if limits and None not in limits:
Args: | ||
limits (tuple): A tuple containing the minimum and maximum transmission limits. | ||
""" | ||
if limits and limits[0] is not None and limits[1] is not None: |
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.
Same as above
Updated qt parts in sync with corresponding p11_char branch in mxcubecore p11_char.