Skip to content

Commit 7070c49

Browse files
committed
Disable positional arguments in workflow.
1 parent 3a25458 commit 7070c49

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

heudiconv/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def ensure_heuristic_arg(heuristic=None):
102102
% ', '.join(get_known_heuristic_names()))
103103

104104

105-
def workflow(dicom_dir_template=None, files=None, subjs=None,
105+
def workflow(*, dicom_dir_template=None, files=None, subjs=None,
106106
converter='dcm2niix', outdir='.', locator=None, conv_outdir=None,
107107
anon_cmd=None, heuristic=None, with_prov=False, session=None,
108108
bids_options=None, overwrite=False, datalad=False, debug=False,
@@ -192,6 +192,10 @@ def workflow(dicom_dir_template=None, files=None, subjs=None,
192192
queue_args : str or None, optional
193193
Additional queue arguments passed as single string of space-separated
194194
Argument=Value pairs. Default is None.
195+
196+
Notes
197+
-----
198+
All parameters in this function must be called as keyword arguments.
195199
"""
196200

197201
# To be done asap so anything random is deterministic

0 commit comments

Comments
 (0)