Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudbore committed Jan 5, 2023
1 parent d34536d commit 1082f0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/scil_validate_bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ def get_data(layout, nSub, dwis, t1s, fs, default_readout, clean):
related_files_suffixes = []
for curr_related in related_files:
related_files_suffixes.append(curr_related.entities['suffix'])
if dwi_direction == get_opposite_phase_encoding_direction(related_files[0].entities[direction_key]):
PE[1] = conversion[related_files[0].entities[direction_key]]
topup_suffix[curr_related.entities['suffix']][1] = related_files[0].path
if dwi_direction == get_opposite_phase_encoding_direction(curr_related.entities[direction_key]):
PE[1] = conversion[curr_related.entities[direction_key]]
topup_suffix[curr_related.entities['suffix']][1] = curr_related.path
else:
topup_suffix[curr_related.entities['suffix']][0] = related_files[0].path
topup_suffix[curr_related.entities['suffix']][0] = curr_related.path

if related_files_suffixes.count('epi') > 2 or related_files_suffixes.count('sbref') > 2:
topup_suffix = {'epi': ['', ''], 'sbref': ['', '']}
Expand Down

0 comments on commit 1082f0d

Please sign in to comment.