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

P11 char Qt #460

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

P11 char Qt #460

wants to merge 19 commits into from

Conversation

agruzinov
Copy link
Contributor

Updated qt parts in sync with corresponding p11_char branch in mxcubecore p11_char.

Comment on lines +131 to +132
# Check if machine current is <= 99, change color
if current_value != "N/A" and float(current_value) <= 99:
Copy link
Member

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:
Copy link
Member

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:
Copy link
Member

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:
Copy link
Member

Choose a reason for hiding this comment

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

Same as above

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