Skip to content

Commit

Permalink
Fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Nov 9, 2024
1 parent 3c1f61a commit c59d589
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fmriprep/utils/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,9 @@ def get_associated(source_files, query, entity_overrides, layout):
query.update(entity_overrides)
associated = []

Check warning on line 429 in fmriprep/utils/bids.py

View check run for this annotation

Codecov / codecov/patch

fmriprep/utils/bids.py#L428-L429

Added lines #L428 - L429 were not covered by tests
for source_file in source_files:
associated.append(layout.get_nearest(source_file, strict=True, **query))
associated_file = layout.get_nearest(source_file, strict=True, **query)

Check warning on line 431 in fmriprep/utils/bids.py

View check run for this annotation

Codecov / codecov/patch

fmriprep/utils/bids.py#L431

Added line #L431 was not covered by tests
if associated_file:
associated.append(associated_file)

Check warning on line 433 in fmriprep/utils/bids.py

View check run for this annotation

Codecov / codecov/patch

fmriprep/utils/bids.py#L433

Added line #L433 was not covered by tests

if len(associated) not in (0, len(source_files)):
raise ValueError(

Check warning on line 436 in fmriprep/utils/bids.py

View check run for this annotation

Codecov / codecov/patch

fmriprep/utils/bids.py#L436

Added line #L436 was not covered by tests
Expand Down

0 comments on commit c59d589

Please sign in to comment.