Skip to content

Commit

Permalink
FIX: filters-kwarg in getopenfilenames (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
marsipu authored Nov 26, 2023
1 parent 70279c5 commit fb1fe41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mne_pipeline_hd/gui/loading_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def get_files_path(self):
filter_list.insert(0, "All Files (*.*)")
filter_qstring = ";;".join(filter_list)
files_list = compat.getopenfilenames(
self, "Choose raw-file/s to import", filter=filter_qstring
self, "Choose raw-file/s to import", filters=filter_qstring
)[0]
self.insert_files(files_list)

Expand Down
8 changes: 8 additions & 0 deletions mne_pipeline_hd/tests/test_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,11 @@ def test_fsmri(controller):

# Test load/save functions
_test_load_save(fsmri, fsaverage_paths)


def test_kwargs_geopenfilenames():
import inspect
from qtpy import compat

signature = inspect.signature(compat.getopenfilenames)
assert "filters" in signature.parameters

0 comments on commit fb1fe41

Please sign in to comment.