Skip to content

Commit

Permalink
FIX: Supported
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Nov 21, 2023
1 parent 12cd5a4 commit 762cddc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mne_kit_gui/_file_traits.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from mne.bem import read_bem_surfaces
from mne.io.constants import FIFF
from mne.io import read_info, read_fiducials, read_raw
from mne.io._read_raw import supported
from mne import create_info
from mne.surface import read_surface, complete_surface_info
from mne.coreg import (_is_mri_subject, _mri_subject_has_bem,
Expand All @@ -31,6 +30,13 @@
from mne.viz._3d import _fiducial_coords
from mne.channels import read_dig_fif

try:
from mne.io._read_raw import _get_supported
except ImportError: # MNE < 1.6
def _get_supported():
from mne.io._read_raw import supported
return supported


fid_wildcard = "*.fif"
trans_wildcard = "*.fif"
Expand Down Expand Up @@ -262,6 +268,7 @@ class DigSource(HasPrivateTraits):
Nasion, RAP, LAP. If no file is set all values are 0.
"""

supported = _get_supported()
file = FileOrDir(exists=True,
filter=[' '.join([f'*{ext}' for ext in supported])])

Expand Down

0 comments on commit 762cddc

Please sign in to comment.