Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Jan 28, 2025
1 parent 264824c commit aa1c42e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cubids/cubids.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ class CuBIDS(object):
A data dictionary for TSV outputs.
use_datalad : :obj:`bool`
If True, use datalad to track changes to the BIDS dataset.
schema : :obj:`dict`
The BIDS schema dictionary.
is_longitudinal : :obj:`bool`
If True, adds "ses" in filepath.
"""
Expand Down
9 changes: 8 additions & 1 deletion cubids/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def bids_sidecar_merge(from_json, to_json):
sys.exit(merge_status)


def group(bids_dir, container, acq_group_level, config, output_prefix):
def group(bids_dir, container, acq_group_level, config, schema, output_prefix):
"""Find key and param groups.
Parameters
Expand All @@ -347,6 +347,8 @@ def group(bids_dir, container, acq_group_level, config, output_prefix):
Level at which acquisition groups are created.
config : :obj:`pathlib.Path`
Path to the grouping config file.
schema : :obj:`pathlib.Path`
Path to the BIDS schema file.
output_prefix : :obj:`pathlib.Path`
Output filename prefix.
"""
Expand All @@ -356,6 +358,7 @@ def group(bids_dir, container, acq_group_level, config, output_prefix):
data_root=str(bids_dir),
acq_group_level=acq_group_level,
grouping_config=config,
schema_json=schema,
)
bod.get_tsvs(
str(output_prefix),
Expand Down Expand Up @@ -428,6 +431,7 @@ def apply(
use_datalad,
acq_group_level,
config,
schema,
edited_summary_tsv,
files_tsv,
new_tsv_prefix,
Expand All @@ -445,6 +449,8 @@ def apply(
Level at which acquisition groups are created.
config : :obj:`pathlib.Path`
Path to the grouping config file.
schema : :obj:`pathlib.Path`
Path to the BIDS schema file.
edited_summary_tsv : :obj:`pathlib.Path`
Path to the edited summary tsv.
files_tsv : :obj:`pathlib.Path`
Expand All @@ -461,6 +467,7 @@ def apply(
use_datalad=use_datalad,
acq_group_level=acq_group_level,
grouping_config=config,
schema_json=schema,
)
if use_datalad:
if not bod.is_datalad_clean():
Expand Down

0 comments on commit aa1c42e

Please sign in to comment.