Skip to content
GitLab
Menu
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
65412973
Commit
65412973
authored
Sep 21, 2020
by
Valentin Valls
Browse files
edit_roi_counters now set the focus on the plot
parent
2eef4d33
Changes
2
Hide whitespace changes
Inline
Side-by-side
bliss/shell/standard.py
View file @
65412973
...
...
@@ -910,6 +910,7 @@ def edit_roi_counters(detector: Lima, acq_time: Optional[float] = None):
raise
RuntimeError
(
"Internal error. A plot from this detector was expected but it is not available. Or Flint was closed in between."
)
plot_proxy
.
focus
()
roi_counters
=
detector
.
roi_counters
roi_profiles
=
detector
.
roi_profiles
...
...
tests/shell/test_standard.py
View file @
65412973
...
...
@@ -341,3 +341,4 @@ def test_edit_roi_counters(
assert
"roi1"
in
cam
.
roi_counters
assert
"roi2"
in
cam
.
roi_profiles
plot_mock
.
select_shapes
.
assert_called_once
()
plot_mock
.
focus
.
assert_called_once
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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