-
Notifications
You must be signed in to change notification settings - Fork 26
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
FIX: patch over positioner limits = (None, None)
issue
#567
Conversation
I'm doing a short investigation to understand why and in which cases this would be explicitly |
OK, I see it now- we hit |
One more important piece of context information: this is also just a fallback for when we don't have signals that directly report the low and high limit values. |
if low_limit < high_limit: | ||
if low_limit is None or high_limit is None: | ||
# TODO: a better fix? need to wait for connection? | ||
... |
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 might be possible to have one more fallback that is subscribing to the setpoint PV's metadata callback- but other than that, there's not that much more we can do if we want to rely on an attribute instead of a signal.
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 think you're right. What gave me pause mostly was the fact that we hide the limit widgets in this scenario - perhaps we just say "well, show the widgets at least so they can be set"
... In typing the above, though, I think there's no method for setting .limits
with these widgets (in the fallback scenario you accurately described in this comment) - right? Or am I missing it?
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.
Right, these widgets are read-only. I think they are just the little text tags that go under the limit switch indicators.
limits = (None, None)
issue
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.
This looks right to me, pending pre-release notes.
I wonder if there are similar portions of typhos that have issues with unfilled/un-initialized signals/values. I suppose we'll find them as we go
d521ad1
to
f23dfa1
Compare
Description
obj.limits
can be(None, None)
in some (perhaps?) disconnected/misconfigured devices.None
and currently hides the limitsFor discussion: on connection, it's possible those limits could go to an actual not-
None
value. In that scenario, this PR would have already hidden the limit widgets and they would not be displayed later.Motivation and Context
Aims to close #565
How Has This Been Tested?
With the "all device screenshot test" mentioned in side channels
Where Has This Been Documented?
Issue and PR text