Skip to content

Commit

Permalink
[FIX] Fix DWI positive direction in dwi-preprocessing (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuJoulot authored Dec 11, 2023
1 parent d289d67 commit 1916259
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clinica/utils/dwi.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,9 @@ def bids_dir_to_fsl_dir(bids_dir):
f"Unknown PhaseEncodingDirection {fsl_dir}: it should be a value in (i, j, k, i-, j-, k-)"
)

return fsl_dir.replace("i", "x").replace("j", "y").replace("k", "z")
return (
fsl_dir.replace("i", "x").replace("j", "y").replace("k", "z").replace("+", "")
)


def extract_bids_identifier_from_filename(dwi_filename: str) -> str:
Expand Down

0 comments on commit 1916259

Please sign in to comment.