Skip to content

Commit

Permalink
bids2table breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nx10 committed Apr 22, 2024
1 parent 31de5b7 commit 80c7c26
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/tsconcat/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,20 @@ def main() -> None:
if not dry_run:
output_dir.mkdir(parents=True, exist_ok=True)

# We dont care about these
df = df.droplevel(0, axis="columns")
# print dataframe columns
print(df.columns)

df_bold = df.query(
"datatype == 'func' and "
"ext == '.nii.gz' and "
"suffix == 'bold' and "
"desc == 'preproc' and "
"space == 'MNI152NLin6ASym'"
"ent__datatype == 'func' and "
"ent__ext == '.nii.gz' and "
"ent__suffix == 'bold' and "
"ent__desc == 'preproc' and "
"ent__space == 'MNI152NLin6ASym'"
)

if df_bold.shape[0] == 0:
raise Exception("No BOLD files found")

def _process_group(df_group: pd.DataFrame) -> None:
group_identifiers = df_group.iloc[0][list(REDUCE_COLUMNS_SET - set(concat_labels))].to_dict()
print(f"Process group: {group_identifiers}")
Expand Down

0 comments on commit 80c7c26

Please sign in to comment.