Skip to content

Commit

Permalink
fix edge case, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrockhill committed Apr 29, 2024
1 parent a7c59df commit 41e9a2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions mne_gui_addons/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ def _toggle_show(self):
self._mr_data = _load_image(mr_base_fname.format("T1"))[0]
self._using_atlas = False
self._toggle_show_brain()
self._update_moved()
elif item == "max intensity proj":
self._toggle_show_mip()
elif item == "local maxima":
Expand Down
4 changes: 2 additions & 2 deletions mne_gui_addons/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def test_slice_browser_display(renderer_interactive_pyvistaqt):
gui = SliceBrowser(subject=subject, subjects_dir=subjects_dir)

# test show/hide
gui._show_hide_selector.setCurrentIndex(1) # hide
gui._show_hide_selector.setCurrentIndex(1) # show
gui._toggle_show_selector.setCurrentIndex(1) # hide
gui._toggle_show_selector.setCurrentIndex(1) # show

# test RAS
gui._RAS_textbox.setText("10 10 10")
Expand Down

0 comments on commit 41e9a2d

Please sign in to comment.