Skip to content

Commit

Permalink
Merge pull request #3611 from manuegrx/master
Browse files Browse the repository at this point in the history
[FIX] MRTrix3 change inputs position for MRTransform
  • Loading branch information
effigies committed Mar 16, 2024
2 parents c46a957 + 0d0d3ff commit f277d18
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
9 changes: 0 additions & 9 deletions nipype/interfaces/mrtrix3/tests/test_auto_MRTransform.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ def test_MRTransform_inputs():
),
debug=dict(
argstr="-debug",
position=1,
),
environ=dict(
nohash=True,
usedefault=True,
),
flip_x=dict(
argstr="-flipx",
position=1,
),
grad_file=dict(
argstr="-grad %s",
Expand All @@ -45,12 +43,10 @@ def test_MRTransform_inputs():
),
invert=dict(
argstr="-inverse",
position=1,
),
linear_transform=dict(
argstr="-linear %s",
extensions=None,
position=1,
),
nthreads=dict(
argstr="-nthreads %d",
Expand All @@ -71,26 +67,21 @@ def test_MRTransform_inputs():
),
quiet=dict(
argstr="-quiet",
position=1,
),
reference_image=dict(
argstr="-reference %s",
extensions=None,
position=1,
),
replace_transform=dict(
argstr="-replace",
position=1,
),
template_image=dict(
argstr="-template %s",
extensions=None,
position=1,
),
transformation_file=dict(
argstr="-transform %s",
extensions=None,
position=1,
),
)
inputs = MRTransform.input_spec()
Expand Down
10 changes: 1 addition & 9 deletions nipype/interfaces/mrtrix3/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,13 +822,11 @@ class MRTransformInputSpec(MRTrix3BaseInputSpec):
)
invert = traits.Bool(
argstr="-inverse",
position=1,
desc="Invert the specified transform before using it",
)
linear_transform = File(
exists=True,
argstr="-linear %s",
position=1,
desc=(
"Specify a linear transform to apply, in the form of a 3x4 or 4x4 ascii file. "
"Note the standard reverse convention is used, "
Expand All @@ -838,38 +836,32 @@ class MRTransformInputSpec(MRTrix3BaseInputSpec):
)
replace_transform = traits.Bool(
argstr="-replace",
position=1,
desc="replace the current transform by that specified, rather than applying it to the current transform",
)
transformation_file = File(
exists=True,
argstr="-transform %s",
position=1,
desc="The transform to apply, in the form of a 4x4 ascii file.",
)
template_image = File(
exists=True,
argstr="-template %s",
position=1,
desc="Reslice the input image to match the specified template image.",
)
reference_image = File(
exists=True,
argstr="-reference %s",
position=1,
desc="in case the transform supplied maps from the input image onto a reference image, use this option to specify the reference. Note that this implicitly sets the -replace option.",
)
flip_x = traits.Bool(
argstr="-flipx",
position=1,
desc="assume the transform is supplied assuming a coordinate system with the x-axis reversed relative to the MRtrix convention (i.e. x increases from right to left). This is required to handle transform matrices produced by FSL's FLIRT command. This is only used in conjunction with the -reference option.",
)
quiet = traits.Bool(
argstr="-quiet",
position=1,
desc="Do not display information messages or progress status.",
)
debug = traits.Bool(argstr="-debug", position=1, desc="Display debugging messages.")
debug = traits.Bool(argstr="-debug", desc="Display debugging messages.")


class MRTransformOutputSpec(TraitedSpec):
Expand Down

0 comments on commit f277d18

Please sign in to comment.