Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f277d18

Browse files
Merge pull request #3611 from manuegrx/master
[FIX] MRTrix3 change inputs position for MRTransform
2 parents c46a957 + 0d0d3ff commit f277d18

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

‎nipype/interfaces/mrtrix3/tests/test_auto_MRTransform.py‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ def test_MRTransform_inputs():
1212
),
1313
debug=dict(
1414
argstr="-debug",
15-
position=1,
1615
),
1716
environ=dict(
1817
nohash=True,
1918
usedefault=True,
2019
),
2120
flip_x=dict(
2221
argstr="-flipx",
23-
position=1,
2422
),
2523
grad_file=dict(
2624
argstr="-grad %s",
@@ -45,12 +43,10 @@ def test_MRTransform_inputs():
4543
),
4644
invert=dict(
4745
argstr="-inverse",
48-
position=1,
4946
),
5047
linear_transform=dict(
5148
argstr="-linear %s",
5249
extensions=None,
53-
position=1,
5450
),
5551
nthreads=dict(
5652
argstr="-nthreads %d",
@@ -71,26 +67,21 @@ def test_MRTransform_inputs():
7167
),
7268
quiet=dict(
7369
argstr="-quiet",
74-
position=1,
7570
),
7671
reference_image=dict(
7772
argstr="-reference %s",
7873
extensions=None,
79-
position=1,
8074
),
8175
replace_transform=dict(
8276
argstr="-replace",
83-
position=1,
8477
),
8578
template_image=dict(
8679
argstr="-template %s",
8780
extensions=None,
88-
position=1,
8981
),
9082
transformation_file=dict(
9183
argstr="-transform %s",
9284
extensions=None,
93-
position=1,
9485
),
9586
)
9687
inputs = MRTransform.input_spec()

‎nipype/interfaces/mrtrix3/utils.py‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -822,13 +822,11 @@ class MRTransformInputSpec(MRTrix3BaseInputSpec):
822822
)
823823
invert = traits.Bool(
824824
argstr="-inverse",
825-
position=1,
826825
desc="Invert the specified transform before using it",
827826
)
828827
linear_transform = File(
829828
exists=True,
830829
argstr="-linear %s",
831-
position=1,
832830
desc=(
833831
"Specify a linear transform to apply, in the form of a 3x4 or 4x4 ascii file. "
834832
"Note the standard reverse convention is used, "
@@ -838,38 +836,32 @@ class MRTransformInputSpec(MRTrix3BaseInputSpec):
838836
)
839837
replace_transform = traits.Bool(
840838
argstr="-replace",
841-
position=1,
842839
desc="replace the current transform by that specified, rather than applying it to the current transform",
843840
)
844841
transformation_file = File(
845842
exists=True,
846843
argstr="-transform %s",
847-
position=1,
848844
desc="The transform to apply, in the form of a 4x4 ascii file.",
849845
)
850846
template_image = File(
851847
exists=True,
852848
argstr="-template %s",
853-
position=1,
854849
desc="Reslice the input image to match the specified template image.",
855850
)
856851
reference_image = File(
857852
exists=True,
858853
argstr="-reference %s",
859-
position=1,
860854
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.",
861855
)
862856
flip_x = traits.Bool(
863857
argstr="-flipx",
864-
position=1,
865858
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.",
866859
)
867860
quiet = traits.Bool(
868861
argstr="-quiet",
869-
position=1,
870862
desc="Do not display information messages or progress status.",
871863
)
872-
debug = traits.Bool(argstr="-debug", position=1, desc="Display debugging messages.")
864+
debug = traits.Bool(argstr="-debug", desc="Display debugging messages.")
873865

874866

875867
class MRTransformOutputSpec(TraitedSpec):

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /