Skip to content

Commit

Permalink
enh: use outsourced apply() from nitransforms
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Jul 30, 2024
1 parent 031445a commit 73f61e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mriqc/workflows/functional/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,10 +819,14 @@ def _apply_transforms(in_file, in_xfm):
from pathlib import Path

from nitransforms.linear import load
from nitransforms.resampling import apply

from mriqc.utils.bids import derive_bids_fname

realigned = load(in_xfm, fmt='afni', reference=in_file, moving=in_file).apply(in_file)
realigned = apply(
load(in_xfm, fmt='afni', reference=in_file, moving=in_file),
in_file,
)
out_file = derive_bids_fname(
in_file,
entity='desc-realigned',
Expand Down

0 comments on commit 73f61e6

Please sign in to comment.