Skip to content

Commit

Permalink
MAINT: Updates for MNE deprecations (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Aug 24, 2023
1 parent a9292d0 commit 290e8e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions mne_gui_addons/_vol_stc.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from mne.evoked import EvokedArray
from mne.time_frequency import EpochsTFR
from mne.io.constants import FIFF
from mne.io.pick import _get_channel_types, _picks_to_idx, _pick_inst
from mne.io.pick import _picks_to_idx
from mne.transforms import apply_trans
from mne.utils import (
_require_version,
Expand Down Expand Up @@ -743,7 +743,7 @@ def _configure_status_bar(self, hbox=None):
hbox.addWidget(QLabel("Topo Data="))
self._data_type_selector = QComboBox()
self._data_type_selector.addItems(
_get_channel_types(self._inst.info, picks="data", unique=True)
self._inst.info.get_channel_types(picks="data", unique=True)
)
self._data_type_selector.currentTextChanged.connect(self._update_data_type)
self._data_type_selector.setSizeAdjustPolicy(QComboBox.AdjustToContents)
Expand Down Expand Up @@ -874,7 +874,7 @@ def get_inst_data(inst):
copy=False,
)

info = _pick_inst(self._inst, dtype, "bads").info
info = self._inst.pick(dtype, exclude="bads").info
ave = EvokedArray(evo_data, info, tmin=self._inst.times[0])

ave_max = evo_data.max()
Expand Down
4 changes: 2 additions & 2 deletions mne_gui_addons/tests/test_ieeg_locate.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import mne
from mne.datasets import testing
from mne.transforms import apply_trans
from mne.utils import requires_version, use_log_level
from mne.utils import use_log_level
from mne.viz.utils import _fake_click
import mne_gui_addons as mne_gui

Expand Down Expand Up @@ -88,10 +88,10 @@ def test_ieeg_elec_locate_io(renderer_interactive_pyvistaqt):


@pytest.mark.allow_unclosed_pyside2
@requires_version("sphinx_gallery")
@testing.requires_testing_data
def test_locate_scraper(renderer_interactive_pyvistaqt, _fake_CT_coords, tmp_path):
"""Test sphinx-gallery scraping of the GUI."""
pytest.importorskip("sphinx_gallery")
raw = mne.io.read_raw_fif(raw_path)
raw.pick_types(eeg=True)
ch_dict = {
Expand Down

0 comments on commit 290e8e0

Please sign in to comment.