Skip to content

Commit 21bd9c2

Browse files
committed
fix: specs
1 parent a8389aa commit 21bd9c2

File tree

9 files changed

+12
-22
lines changed

9 files changed

+12
-22
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2831,7 +2831,7 @@ class QwarpInputSpec(AFNICommandInputSpec):
28312831
desc='add extra options to the 3dAllineate command to be run by '
28322832
'3dQwarp.',
28332833
argstr='-allineate_opts %s',
2834-
xand=['allineate'])
2834+
requires=['allineate'])
28352835
nowarp = traits.Bool(desc='Do not save the _WARP file.', argstr='-nowarp')
28362836
iwarp = traits.Bool(
28372837
desc='Do compute and save the _WARPINV file.',

nipype/interfaces/afni/tests/test_auto_CatMatvec.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ def test_CatMatvec_inputs():
1212
),
1313
fourxfour=dict(
1414
argstr='-4x4',
15-
descr=
16-
'Output matrix in augmented form (last row is 0 0 0 1)This option does not work with -MATRIX or -ONELINE',
1715
xor=['matrix', 'oneline'],
1816
),
1917
ignore_exception=dict(
@@ -23,14 +21,11 @@ def test_CatMatvec_inputs():
2321
),
2422
in_file=dict(
2523
argstr='%s',
26-
descr='list of tuples of mfiles and associated opkeys',
2724
mandatory=True,
2825
position=-2,
2926
),
3027
matrix=dict(
3128
argstr='-MATRIX',
32-
descr=
33-
"indicates that the resulting matrix willbe written to outfile in the 'MATRIX(...)' format (FORM 3).This feature could be used, with clever scripting, to inputa matrix directly on the command line to program 3dWarp.",
3429
xor=['oneline', 'fourxfour'],
3530
),
3631
num_threads=dict(
@@ -39,13 +34,10 @@ def test_CatMatvec_inputs():
3934
),
4035
oneline=dict(
4136
argstr='-ONELINE',
42-
descr=
43-
'indicates that the resulting matrixwill simply be written as 12 numbers on one line.',
4437
xor=['matrix', 'fourxfour'],
4538
),
4639
out_file=dict(
4740
argstr=' > %s',
48-
descr='File to write concattenated matvecs to',
4941
mandatory=True,
5042
position=-1,
5143
),

nipype/interfaces/afni/tests/test_auto_CenterMass.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ def test_CenterMass_inputs():
1010
automask=dict(argstr='-automask', ),
1111
cm_file=dict(
1212
argstr='> %s',
13-
descr='File to write center of mass to',
1413
hash_files=False,
1514
keep_extension=False,
1615
name_source='in_file',

nipype/interfaces/afni/tests/test_auto_NwarpCat.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def test_NwarpCat_inputs():
1818
),
1919
in_files=dict(
2020
argstr='%s',
21-
descr='list of tuples of 3D warps and associated functions',
2221
mandatory=True,
2322
position=-1,
2423
),

nipype/interfaces/afni/tests/test_auto_Qwarp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def test_Qwarp_inputs():
1010
allineate=dict(argstr='-allineate', ),
1111
allineate_opts=dict(
1212
argstr='-allineate_opts %s',
13-
xand=['allineate'],
13+
requires=['allineate'],
1414
),
1515
allsave=dict(
1616
argstr='-allsave',

nipype/interfaces/afni/utils.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -564,29 +564,29 @@ class Cat(AFNICommand):
564564
class CatMatvecInputSpec(AFNICommandInputSpec):
565565
in_file = traits.List(
566566
traits.Tuple(traits.Str(), traits.Str()),
567-
descr="list of tuples of mfiles and associated opkeys",
567+
desc="list of tuples of mfiles and associated opkeys",
568568
mandatory=True,
569569
argstr="%s",
570570
position=-2)
571571
out_file = File(
572-
descr="File to write concattenated matvecs to",
572+
desc="File to write concattenated matvecs to",
573573
argstr=" > %s",
574574
position=-1,
575575
mandatory=True)
576576
matrix = traits.Bool(
577-
descr="indicates that the resulting matrix will"
577+
desc="indicates that the resulting matrix will"
578578
"be written to outfile in the 'MATRIX(...)' format (FORM 3)."
579579
"This feature could be used, with clever scripting, to input"
580580
"a matrix directly on the command line to program 3dWarp.",
581581
argstr="-MATRIX",
582582
xor=['oneline', 'fourxfour'])
583583
oneline = traits.Bool(
584-
descr="indicates that the resulting matrix"
584+
desc="indicates that the resulting matrix"
585585
"will simply be written as 12 numbers on one line.",
586586
argstr="-ONELINE",
587587
xor=['matrix', 'fourxfour'])
588588
fourxfour = traits.Bool(
589-
descr="Output matrix in augmented form (last row is 0 0 0 1)"
589+
desc="Output matrix in augmented form (last row is 0 0 0 1)"
590590
"This option does not work with -MATRIX or -ONELINE",
591591
argstr="-4x4",
592592
xor=['matrix', 'oneline'])
@@ -635,7 +635,7 @@ class CenterMassInputSpec(CommandLineInputSpec):
635635
name_template='%s_cm.out',
636636
hash_files=False,
637637
keep_extension=False,
638-
descr="File to write center of mass to",
638+
desc="File to write center of mass to",
639639
argstr="> %s",
640640
position=-1)
641641
mask_file = File(
@@ -1553,7 +1553,7 @@ class NwarpCatInputSpec(AFNICommandInputSpec):
15531553
traits.Tuple(
15541554
traits.Enum('IDENT', 'INV', 'SQRT', 'SQRTINV'),
15551555
traits.File())),
1556-
descr="list of tuples of 3D warps and associated functions",
1556+
desc="list of tuples of 3D warps and associated functions",
15571557
mandatory=True,
15581558
argstr="%s",
15591559
position=-1)

nipype/interfaces/ants/registration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ class RegistrationInputSpec(ANTSCommandInputSpec):
311311
)
312312

313313
initial_moving_transform = InputMultiPath(
314+
File(exists=True),
314315
argstr='%s',
315-
exists=True,
316316
desc='A transform or a list of transforms that should be applied'
317317
'before the registration begins. Note that, when a list is given,'
318318
'the transformations are applied in reverse order.',

nipype/interfaces/ants/tests/test_auto_ComposeMultiTransform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_ComposeMultiTransform_inputs():
2626
),
2727
output_transform=dict(
2828
argstr='%s',
29-
keep_ext=True,
29+
keep_extension=True,
3030
name_source=['transforms'],
3131
name_template='%s_composed',
3232
position=1,

nipype/interfaces/ants/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ class ComposeMultiTransformInputSpec(ANTSCommandInputSpec):
331331
position=1,
332332
name_source=['transforms'],
333333
name_template='%s_composed',
334-
keep_ext=True,
334+
keep_extension=True,
335335
desc='the name of the resulting transform.')
336336
reference_image = File(
337337
argstr='%s',

0 commit comments

Comments
 (0)