Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit e12543b

Browse files
committed
FIX: pybids filename changed to path
1 parent c3b66bc commit e12543b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dmriprep/io.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@ def get_bids_subject_input_files(subject_id, bids_input_directory):
3333
suffix='epi',
3434
dir='PA',
3535
extensions=['.nii', '.nii.gz'])
36-
3736
assert len(pa_file) == 1, 'found {} pa fieldmap files and we need just 1'.format(len(pa_file))
3837

3938
dwi_files = layout.get(subject=subject_id, datatype='dwi', suffix='dwi')
4039
valid_dwi_files = []
4140

4241
for d in dwi_files:
4342
if d.path.startswith(op.abspath(op.join(bids_input_directory, 'sub-' + subject_id))):
44-
valid_dwi_files.append(d.filename)
43+
valid_dwi_files.append(d.path)
4544

4645
dwi_file = [d for d in valid_dwi_files if d.endswith('.nii.gz') and not "TRACE" in d]
4746
assert len(dwi_file) == 1, 'found {} dwi files and we need just 1'.format(len(dwi_file))

0 commit comments

Comments
 (0)