Commit 05cdcb6d authored by Sebastien Petitdemange's avatar Sebastien Petitdemange
Browse files

axis: fixed a bug in dial limits.

On restart, doesn't take the limit set but the configuration ones.
parent 2c14f78e
Pipeline #30927 failed with stages
in 120 minutes and 25 seconds
......@@ -1441,7 +1441,8 @@ class Axis:
raise TypeError
except TypeError:
raise ValueError("Usage: .dial_limits(low, high)")
ll, hl = (float(x) if x is not None else None for x in limits)
ll = float(limits[0]) if limits[0] is not None else float("-inf")
hl = float(limits[1]) if limits[1] is not None else float("+inf")
self.settings.set("low_limit", ll)
self.settings.set("high_limit", hl)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment