Skip to content

Commit b6e0f3e

Browse files
Update transforms.py according to new tranform chain of nitransforms
nipy/nitransforms@23a425d Without this, we get an error like "TypeError: Input file is not in X5 format"
1 parent 5bb1cf5 commit b6e0f3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fmriprep/utils/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def load_transforms(xfm_paths: list[Path], inverse: list[bool]) -> nt.base.Trans
2020
path = Path(path)
2121
if path.suffix == '.h5':
2222
# Load as a TransformChain
23-
xfm = nt.manip.load(path)
23+
xfm = nt.manip.load(path, fmt="h5")
2424
else:
2525
xfm = nt.linear.load(path)
2626
if inv:

0 commit comments

Comments
 (0)