Skip to content

Commit cfe8d17

Browse files
committed
FIX: Use nitransforms for compare_xforms
1 parent 2179576 commit cfe8d17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nibabies/workflows/bold/registration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -704,11 +704,11 @@ def compare_xforms(lta_list, norm_threshold=15):
704704
second transform relative to the first (default: `15`)
705705
706706
"""
707+
import nitransforms as nt
707708
from nipype.algorithms.rapidart import _calc_norm_affine
708-
from niworkflows.interfaces.surf import load_transform
709709

710-
bbr_affine = load_transform(lta_list[0])
711-
fallback_affine = load_transform(lta_list[1])
710+
bbr_affine = nt.linear.load(lta_list[0]).matrix
711+
fallback_affine = nt.linear.load(lta_list[1]).matrix
712712

713713
norm, _ = _calc_norm_affine([fallback_affine, bbr_affine], use_differences=True)
714714

0 commit comments

Comments
 (0)