Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bliss
bliss
Commits
05cdcb6d
Commit
05cdcb6d
authored
May 27, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bliss/common/axis.py
View file @
05cdcb6d
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment