Skip to content

Commit

Permalink
Fix parameter type.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Mar 28, 2024
1 parent b3933b4 commit aacef03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fmriprep/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __call__(self, parser, namespace, values, option_string=None):
k = f'deriv-{i_kv}'
else:
k, v = kv.split('=')
d[k] = os.path.abspath(v)
d[k] = Path(v)
setattr(namespace, self.dest, d)

def _path_exists(path, parser):
Expand Down Expand Up @@ -236,7 +236,7 @@ def _slice_time_ref(value, parser):
'--derivatives',
action=ToDict,
metavar='PACKAGE=PATH',
type=Path,
type=str,
nargs='*',
help=(
'Search PATH(s) for pre-computed derivatives. '
Expand Down

0 comments on commit aacef03

Please sign in to comment.