Skip to content

Commit

Permalink
FIX Update bids.py
Browse files Browse the repository at this point in the history
change index_val to index_value in a couple of places
  • Loading branch information
erikglee authored Sep 24, 2024
1 parent d24cd43 commit c16a408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nibabies/utils/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ def parse_bids_for_age_months(
age = _get_age_from_tsv(
scans_tsv,
index_column='filename',
index_val=r'^anat.*',
index_value=r'^anat.*',
)

if age is not None:
return age

sessions_tsv = subject_level / f'{subject}_sessions.tsv'
if sessions_tsv.exists() and session_id is not None:
age = _get_age_from_tsv(sessions_tsv, index_column='session_id', index_val=session)
age = _get_age_from_tsv(sessions_tsv, index_column='session_id', index_value=session)

if age is not None:
return age
Expand Down

0 comments on commit c16a408

Please sign in to comment.