Skip to content

Commit 3e119b3

Browse files
committed
BF+RF: it is files, not paths name of the arg. Pass as an arg not kwarg
1 parent e0e8227 commit 3e119b3

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

heudiconv/external/dlad.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -139,24 +139,23 @@ def add_to_datalad(topdir, studydir, msg, bids):
139139
"""
140140

141141

142-
def mark_sensitive(ds, path_glob=None):
142+
def mark_sensitive(ds, path_glob):
143143
"""
144144
145145
Parameters
146146
----------
147147
ds : Dataset to operate on
148-
path_glob : str, optional
148+
path_glob : str
149149
glob of the paths within dataset to work on
150+
150151
Returns
151152
-------
152153
None
153154
"""
154-
sens_kwargs = dict(
155-
init=[('distribution-restrictions', 'sensitive')]
156-
)
157-
if path_glob:
158-
paths = glob(op.join(ds.path, path_glob))
159-
if not paths:
160-
return
161-
sens_kwargs['path'] = paths
162-
ds.repo.set_metadata(recursive=True, **sens_kwargs)
155+
paths = glob(op.join(ds.path, path_glob))
156+
if not paths:
157+
return
158+
ds.repo.set_metadata(
159+
paths,
160+
init=[('distribution-restrictions', 'sensitive')],
161+
recursive=True)

0 commit comments

Comments
 (0)