Skip to content

Commit

Permalink
FIX: names
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Jan 23, 2024
1 parent 464feb8 commit 3ce2b7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mne/export/_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ def _infer_check_export_fmt(fmt, fname, supported_formats):

if fmt not in supported_formats:
supported = []
for fmt, extensions in supported_formats.items():
for supp_format, extensions in supported_formats.items():
ext_str = ", ".join(f"*.{ext}" for ext in extensions)
supported.append(f"{fmt} ({ext_str})")
supported.append(f"{supp_format} ({ext_str})")

supported_str = ", ".join(supported)
raise ValueError(
Expand Down
4 changes: 2 additions & 2 deletions mne/gui/_coreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1907,7 +1907,7 @@ def _configure_dock(self):
func=self._save_trans,
tooltip="Save the transform file to disk",
layout=save_trans_layout,
filter="Head->MRI transformation (*-trans.fif *_trans.fif)",
filter_="Head->MRI transformation (*-trans.fif *_trans.fif)",
initial_directory=str(Path(self._info_file).parent),
)
self._widgets["load_trans"] = self._renderer._dock_add_file_button(
Expand All @@ -1916,7 +1916,7 @@ def _configure_dock(self):
func=self._load_trans,
tooltip="Load the transform file from disk",
layout=save_trans_layout,
filter="Head->MRI transformation (*-trans.fif *_trans.fif)",
filter_="Head->MRI transformation (*-trans.fif *_trans.fif)",
initial_directory=str(Path(self._info_file).parent),
)
self._renderer._layout_add_widget(trans_layout, save_trans_layout)
Expand Down

0 comments on commit 3ce2b7f

Please sign in to comment.