Skip to content

Commit 1b35bff

Browse files
committed
fix: traits
1 parent 9856211 commit 1b35bff

File tree

7 files changed

+13
-17
lines changed

7 files changed

+13
-17
lines changed

nipype/algorithms/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ def calc_moments(timeseries_file, moment):
959959
class NormalizeProbabilityMapSetInputSpec(TraitedSpec):
960960
in_files = InputMultiPath(File(exists=True, mandatory=True,
961961
desc='The tpms to be normalized') )
962-
in_mask = File(exists=True, mandatory=False,
962+
in_mask = File(exists=True,
963963
desc='Masked voxels must sum up 1.0, 0.0 otherwise.')
964964

965965
class NormalizeProbabilityMapSetOutputSpec(TraitedSpec):

nipype/algorithms/tests/test_auto_NormalizeProbabilityMapSet.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
def test_NormalizeProbabilityMapSet_inputs():
66
input_map = dict(in_files=dict(),
7-
in_mask=dict(mandatory=False,
8-
),
7+
in_mask=dict(),
98
)
109
inputs = NormalizeProbabilityMapSet.input_spec()
1110

nipype/interfaces/elastix/tests/test_auto_EditTransform.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ def test_EditTransform_inputs():
1414
),
1515
output_type=dict(argstr='ResultImagePixelType',
1616
),
17-
reference_image=dict(mandatory=False,
18-
),
17+
reference_image=dict(),
1918
transform_file=dict(mandatory=True,
2019
),
2120
)

nipype/interfaces/elastix/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
class EditTransformInputSpec(BaseInterfaceInputSpec):
2828
transform_file = File(exists=True, mandatory=True,
2929
desc='transform-parameter file, only 1')
30-
reference_image = File(exists=True, mandatory=False,
31-
desc='set a new reference image to change the target coordinate system.')
30+
reference_image = File(exists=True,
31+
desc=('set a new reference image to change the '
32+
'target coordinate system.'))
3233
interpolation = traits.Enum('cubic','linear','nearest', usedefault=True,
3334
argstr='FinalBSplineInterpolationOrder',
3435
desc='set a new interpolator for transformation')

nipype/interfaces/fsl/tests/test_auto_ConvertWarp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ def test_ConvertWarp_inputs():
2020
),
2121
jacobian_min=dict(argstr='--jmin=%f',
2222
),
23+
midmat=dict(argstr='--midmat=%s',
24+
),
2325
out_abswarp=dict(argstr='--absout',
2426
xor=['out_relwarp'],
2527
),

nipype/interfaces/io.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,12 +1548,9 @@ def _list_outputs(self):
15481548
return None
15491549

15501550
class SSHDataGrabberInputSpec(DataGrabberInputSpec):
1551-
hostname = traits.Str(mandatory=True,
1552-
desc='Server hostname.')
1553-
username = traits.Str(mandatory=False,
1554-
desc='Server username.')
1555-
password = traits.Password(mandatory=False,
1556-
desc='Server password.')
1551+
hostname = traits.Str(mandatory=True, desc='Server hostname.')
1552+
username = traits.Str(desc='Server username.')
1553+
password = traits.Password(desc='Server password.')
15571554
download_files = traits.Bool(True, usedefault=True,
15581555
desc='If false it will return the file names without downloading them')
15591556
base_directory = traits.Str(mandatory=True,

nipype/interfaces/tests/test_auto_SSHDataGrabber.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ def test_SSHDataGrabber_inputs():
1212
ignore_exception=dict(nohash=True,
1313
usedefault=True,
1414
),
15-
password=dict(mandatory=False,
16-
),
15+
password=dict(),
1716
raise_on_empty=dict(usedefault=True,
1817
),
1918
sort_filelist=dict(mandatory=True,
@@ -25,8 +24,7 @@ def test_SSHDataGrabber_inputs():
2524
template_args=dict(),
2625
template_expression=dict(usedefault=True,
2726
),
28-
username=dict(mandatory=False,
29-
),
27+
username=dict(),
3028
)
3129
inputs = SSHDataGrabber.input_spec()
3230

0 commit comments

Comments
 (0)