Skip to content

Commit fd7c252

Browse files
authored
Remove unnecessary arguments from cubids apply (#317)
1 parent fac7380 commit fd7c252

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

cubids/workflows.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,8 @@ def apply(
359359
acq_group_level,
360360
config,
361361
edited_summary_tsv,
362-
edited_tsv_prefix,
363362
files_tsv,
364363
new_tsv_prefix,
365-
output_prefix,
366364
container,
367365
):
368366
"""Apply the tsv changes.
@@ -379,14 +377,10 @@ def apply(
379377
Path to the grouping config file.
380378
edited_summary_tsv : :obj:`pathlib.Path`
381379
Path to the edited summary tsv.
382-
edited_tsv_prefix : :obj:`pathlib.Path`
383-
Path to the edited tsv prefix.
384380
files_tsv : :obj:`pathlib.Path`
385381
Path to the files tsv.
386382
new_tsv_prefix : :obj:`pathlib.Path`
387383
Path to the new tsv prefix.
388-
output_prefix : :obj:`pathlib.Path`
389-
Output filename prefix.
390384
container : :obj:`str`
391385
Container in which to run the workflow.
392386
"""
@@ -412,8 +406,8 @@ def apply(
412406
# Run it through a container
413407
container_type = _get_container_type(container)
414408
bids_dir_link = str(bids_dir.absolute()) + ":/bids"
415-
input_summary_tsv_dir_link = str(edited_tsv_prefix.parent.absolute()) + ":/in_summary_tsv:ro"
416-
input_files_tsv_dir_link = str(edited_tsv_prefix.parent.absolute()) + ":/in_files_tsv:ro"
409+
input_summary_tsv_dir_link = str(edited_summary_tsv.parent.absolute()) + ":/in_summary_tsv:ro"
410+
input_files_tsv_dir_link = str(edited_summary_tsv.parent.absolute()) + ":/in_files_tsv:ro"
417411
output_tsv_dir_link = str(new_tsv_prefix.parent.absolute()) + ":/out_tsv:rw"
418412

419413
# FROM BOND-GROUP
@@ -422,7 +416,7 @@ def apply(
422416
input_config_dir_link = str(config.parent.absolute()) + ":/in_config:ro"
423417
linked_input_config = "/in_config/" + config.name
424418

425-
linked_output_prefix = "/tsv/" + output_prefix.name
419+
linked_output_prefix = "/tsv/" + new_tsv_prefix.name
426420

427421
####
428422
linked_input_summary_tsv = "/in_summary_tsv/" + edited_summary_tsv.name

0 commit comments

Comments
 (0)