Skip to content

Commit

Permalink
FIX: Use nitransforms for compare_xforms
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Dec 18, 2024
1 parent 2179576 commit cfe8d17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nibabies/workflows/bold/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,11 +704,11 @@ def compare_xforms(lta_list, norm_threshold=15):
second transform relative to the first (default: `15`)
"""
import nitransforms as nt
from nipype.algorithms.rapidart import _calc_norm_affine
from niworkflows.interfaces.surf import load_transform

bbr_affine = load_transform(lta_list[0])
fallback_affine = load_transform(lta_list[1])
bbr_affine = nt.linear.load(lta_list[0]).matrix
fallback_affine = nt.linear.load(lta_list[1]).matrix

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

Expand Down

0 comments on commit cfe8d17

Please sign in to comment.