Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Deduplicate dcm2niix output #3610

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions nipype/interfaces/dcm2nii.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,11 @@
mvecs.append(fl)
elif fl.endswith(".json") or fl.endswith(".txt"):
bids.append(fl)

# in siemens mosaic conversion nipype misread dcm2niix output and generate a duplicate list of results
# next line remove duplicates from output files array
outfiles = [*set(outfiles)]

Check warning on line 491 in nipype/interfaces/dcm2nii.py

View check run for this annotation

Codecov / codecov/patch

nipype/interfaces/dcm2nii.py#L491

Added line #L491 was not covered by tests
mauriliogenovese marked this conversation as resolved.
Show resolved Hide resolved

self.output_files = outfiles
self.bvecs = bvecs
self.mvecs = mvecs
Expand Down
Loading