Skip to content

Commit 82cc6f0

Browse files
authored
BUG: Fix bug with default (#13744)
1 parent c530c20 commit 82cc6f0

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

mne/datasets/_phantom/base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@
1111

1212

1313
@verbose
14-
def fetch_phantom(kind, subjects_dir=None, *, verbose=None):
14+
def fetch_phantom(kind="otaniemi", subjects_dir=None, *, verbose=None):
1515
"""Fetch and update a phantom subject.
1616
1717
Parameters
1818
----------
1919
kind : str
2020
The kind of phantom to fetch. Can only be ``'otaniemi'`` (default).
21+
22+
.. versionchanged:: 1.12
23+
The default is now properly set in the signature so it doesn't need to be
24+
provided.
2125
%(subjects_dir)s
2226
%(verbose)s
2327

mne/utils/check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def _check_fname(
281281
if not overwrite:
282282
raise FileExistsError(
283283
"Destination file exists. Please use option "
284-
'"overwrite=True" to force overwriting.'
284+
f'"overwrite=True" to force overwriting of: {name}'
285285
)
286286
elif overwrite != "read":
287287
logger.info("Overwriting existing file.")

0 commit comments

Comments
 (0)