Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary arguments from cubids apply #317

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions cubids/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,8 @@ def apply(
acq_group_level,
config,
edited_summary_tsv,
edited_tsv_prefix,
files_tsv,
new_tsv_prefix,
output_prefix,
container,
):
"""Apply the tsv changes.
Expand All @@ -379,14 +377,10 @@ def apply(
Path to the grouping config file.
edited_summary_tsv : :obj:`pathlib.Path`
Path to the edited summary tsv.
edited_tsv_prefix : :obj:`pathlib.Path`
Path to the edited tsv prefix.
files_tsv : :obj:`pathlib.Path`
Path to the files tsv.
new_tsv_prefix : :obj:`pathlib.Path`
Path to the new tsv prefix.
output_prefix : :obj:`pathlib.Path`
Output filename prefix.
container : :obj:`str`
Container in which to run the workflow.
"""
Expand All @@ -412,8 +406,8 @@ def apply(
# Run it through a container
container_type = _get_container_type(container)
bids_dir_link = str(bids_dir.absolute()) + ":/bids"
input_summary_tsv_dir_link = str(edited_tsv_prefix.parent.absolute()) + ":/in_summary_tsv:ro"
input_files_tsv_dir_link = str(edited_tsv_prefix.parent.absolute()) + ":/in_files_tsv:ro"
input_summary_tsv_dir_link = str(edited_summary_tsv.parent.absolute()) + ":/in_summary_tsv:ro"
input_files_tsv_dir_link = str(edited_summary_tsv.parent.absolute()) + ":/in_files_tsv:ro"
output_tsv_dir_link = str(new_tsv_prefix.parent.absolute()) + ":/out_tsv:rw"

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

linked_output_prefix = "/tsv/" + output_prefix.name
linked_output_prefix = "/tsv/" + new_tsv_prefix.name

####
linked_input_summary_tsv = "/in_summary_tsv/" + edited_summary_tsv.name
Expand Down