Skip to content

Commit

Permalink
Try that then.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Nov 27, 2023
1 parent 1b07ac5 commit ad979b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 1 addition & 4 deletions aslprep/interfaces/resampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ class ResampleSeriesInputSpec(TraitedSpec):
in_file = File(exists=True, mandatory=True, desc="3D or 4D image file to resample")
ref_file = File(exists=True, mandatory=True, desc="File to resample in_file to")
transforms = InputMultiObject(
traits.Either(
File(exists=True),
traits.Enum("identity"),
),
File(exists=True),
mandatory=True,
desc="Transform files, from in_file to ref_file (image mode)",
)
Expand Down
6 changes: 5 additions & 1 deletion aslprep/workflows/asl/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,9 +792,13 @@ def init_asl_native_wf(
]) # fmt:skip

if m0scan:
from pkg_resources import resource_filename as pkgrf

# Resample separate M0 file to aslref
# No HMC
identity_xfm = pkgrf("aslprep", "data/itkIdentityTransform.txt")
aslref_m0scan = pe.Node(
ResampleSeries(transforms=[], in_file=m0scan),
ResampleSeries(transforms=[identity_xfm], in_file=m0scan),
name="aslref_m0scan",
n_procs=omp_nthreads,
)
Expand Down

0 comments on commit ad979b2

Please sign in to comment.